Busybox: Upgrade to 1.21.1 (stable). lsof active.
[tomato.git] / release / src / router / iptables / extensions / libipt_NOTRACK.c
blob39489aea3200eb2139309b0e5da1093bc67fb443
1 /* Shared library add-on to iptables to add NOTRACK target support. */
2 #include <stdio.h>
3 #include <string.h>
4 #include <stdlib.h>
5 #include <getopt.h>
7 #include <iptables.h>
8 #include <linux/netfilter_ipv4/ip_tables.h>
10 /* Function which prints out usage message. */
11 static void
12 help(void)
14 printf(
15 "NOTRACK target v%s takes no options\n",
16 IPTABLES_VERSION);
19 static struct option opts[] = {
20 { 0 }
23 /* Initialize the target. */
24 static void
25 init(struct ipt_entry_target *t, unsigned int *nfcache)
29 /* Function which parses command options; returns true if it
30 ate an option */
31 static int
32 parse(int c, char **argv, int invert, unsigned int *flags,
33 const struct ipt_entry *entry,
34 struct ipt_entry_target **target)
36 return 0;
39 static void
40 final_check(unsigned int flags)
44 static
45 struct iptables_target notrack
46 = { .next = NULL,
47 .name = "NOTRACK",
48 .version = IPTABLES_VERSION,
49 .size = IPT_ALIGN(0),
50 .userspacesize = IPT_ALIGN(0),
51 .help = &help,
52 .init = &init,
53 .parse = &parse,
54 .final_check = &final_check,
55 .print = NULL, /* print */
56 .save = NULL, /* save */
57 .extra_opts = opts
60 void _init(void)
62 register_target(&notrack);