3 BCOUNT target (experimental)
4 Copyright (C) 2006 Jonathan Zarate
6 Licensed under GNU GPL v2 or later.
15 #include <linux/netfilter_ipv4/ipt_BCOUNT.h>
17 static void help(void)
19 printf("BCOUNT target (experimental) v0.01\nCopyright (C) 2006 Jonathan Zarate\n");
22 static void init(struct ipt_entry_target
*t
, unsigned int *nfcache
)
26 static struct option opts
[] = { { 0 } };
28 static int parse(int c
, char **argv
, int invert
, unsigned int *flags
,
29 const struct ipt_entry
*entry
, struct ipt_entry_target
**target
)
34 static void final_check(unsigned int flags
)
38 static struct iptables_target BCOUNT_target
41 .version
= IPTABLES_VERSION
,
42 .size
= IPT_ALIGN(sizeof(struct ipt_BCOUNT_target
)),
43 .userspacesize
= IPT_ALIGN(sizeof(struct ipt_BCOUNT_target
)),
47 .final_check
= &final_check
,
55 register_target(&BCOUNT_target
);