Busybox: Upgrade to 1.21.1 (stable). lsof active.
[tomato.git] / release / src / router / iptables / extensions / libipt_BCOUNT.c
blob69a03600c0f5b350704d839166c769a0409bb93e
1 /*
3 BCOUNT target (experimental)
4 Copyright (C) 2006 Jonathan Zarate
6 Licensed under GNU GPL v2 or later.
8 */
9 #include <stdio.h>
10 #include <string.h>
11 #include <stdlib.h>
12 #include <getopt.h>
14 #include <iptables.h>
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)
31 return 0;
34 static void final_check(unsigned int flags)
38 static struct iptables_target BCOUNT_target
39 = { .next = NULL,
40 .name = "BCOUNT",
41 .version = IPTABLES_VERSION,
42 .size = IPT_ALIGN(sizeof(struct ipt_BCOUNT_target)),
43 .userspacesize = IPT_ALIGN(sizeof(struct ipt_BCOUNT_target)),
44 .help = &help,
45 .init = &init,
46 .parse = &parse,
47 .final_check = &final_check,
48 .print = NULL,
49 .save = NULL,
50 .extra_opts = opts
53 void _init(void)
55 register_target(&BCOUNT_target);