linux/net/bridge/netfilter/ebt_limit.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 *  ebt_limit
 *
 *	Authors:
 *	Tom Marshall <[email protected]>
 *
 *	Mostly copied from netfilter's ipt_limit.c, see that file for
 *	more explanation
 *
 *  September, 2003
 *
 */
#define pr_fmt(fmt)
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/spinlock.h>
#include <linux/netfilter/x_tables.h>
#include <linux/netfilter_bridge/ebtables.h>
#include <linux/netfilter_bridge/ebt_limit.h>

static DEFINE_SPINLOCK(limit_lock);

#define MAX_CPJ

#define _POW2_BELOW2(x)
#define _POW2_BELOW4(x)
#define _POW2_BELOW8(x)
#define _POW2_BELOW16(x)
#define _POW2_BELOW32(x)
#define POW2_BELOW32(x)

#define CREDITS_PER_JIFFY

static bool
ebt_limit_mt(const struct sk_buff *skb, struct xt_action_param *par)
{}

/* Precision saver. */
static u_int32_t
user2credits(u_int32_t user)
{}

static int ebt_limit_mt_check(const struct xt_mtchk_param *par)
{}


#ifdef CONFIG_NETFILTER_XTABLES_COMPAT
/*
 * no conversion function needed --
 * only avg/burst have meaningful values in userspace.
 */
struct ebt_compat_limit_info {};
#endif

static struct xt_match ebt_limit_mt_reg __read_mostly =;

static int __init ebt_limit_init(void)
{}

static void __exit ebt_limit_fini(void)
{}

module_init();
module_exit(ebt_limit_fini);
MODULE_DESCRIPTION();
MODULE_LICENSE();