linux/net/netfilter/xt_connlimit.c

/*
 * netfilter module to limit the number of parallel tcp
 * connections per IP address.
 *   (c) 2000 Gerd Knorr <[email protected]>
 *   Nov 2002: Martin Bene <[email protected]>:
 *		only ignore TIME_WAIT or gone connections
 *   (C) CC Computer Consultants GmbH, 2007
 *
 * based on ...
 *
 * Kernel module to match connection tracking information.
 * GPL (C) 1999  Rusty Russell ([email protected]).
 */
#define pr_fmt(fmt)

#include <linux/ip.h>
#include <linux/ipv6.h>
#include <linux/module.h>
#include <linux/skbuff.h>
#include <linux/netfilter/x_tables.h>
#include <linux/netfilter/xt_connlimit.h>

#include <net/netfilter/nf_conntrack.h>
#include <net/netfilter/nf_conntrack_core.h>
#include <net/netfilter/nf_conntrack_tuple.h>
#include <net/netfilter/nf_conntrack_zones.h>
#include <net/netfilter/nf_conntrack_count.h>

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

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

static void connlimit_mt_destroy(const struct xt_mtdtor_param *par)
{}

static struct xt_match connlimit_mt_reg __read_mostly =;

static int __init connlimit_mt_init(void)
{}

static void __exit connlimit_mt_exit(void)
{}

module_init();
module_exit(connlimit_mt_exit);
MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_ALIAS();
MODULE_ALIAS();