summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author/C=JP/ST=JP/CN=Yasuyuki Kozakai/emailAddress=yasuyuki@netfilter.org </C=JP/ST=JP/CN=Yasuyuki Kozakai/emailAddress=yasuyuki@netfilter.org>2007-07-24 06:41:01 +0000
committer/C=JP/ST=JP/CN=Yasuyuki Kozakai/emailAddress=yasuyuki@netfilter.org </C=JP/ST=JP/CN=Yasuyuki Kozakai/emailAddress=yasuyuki@netfilter.org>2007-07-24 06:41:01 +0000
commit9dbffbfd42210b766aea8f1abf895f3da7879f1c (patch)
treec2f421e9fc659fa26171570c3b581618ebbb6122
parent50d19bb0bc61d687a0614f4efea222b85ac4faa8 (diff)
Use unified API in NOTRACK target.
-rw-r--r--extensions/libipt_NOTRACK.c31
1 files changed, 15 insertions, 16 deletions
diff --git a/extensions/libipt_NOTRACK.c b/extensions/libipt_NOTRACK.c
index 7aec15c..2276eb6 100644
--- a/extensions/libipt_NOTRACK.c
+++ b/extensions/libipt_NOTRACK.c
@@ -4,8 +4,8 @@
#include <stdlib.h>
#include <getopt.h>
-#include <iptables.h>
-#include <linux/netfilter_ipv4/ip_tables.h>
+#include <xtables.h>
+#include <linux/netfilter/x_tables.h>
/* Function which prints out usage message. */
static void
@@ -42,22 +42,21 @@ final_check(unsigned int flags)
}
static
-struct iptables_target notrack
-= { .next = NULL,
- .name = "NOTRACK",
- .version = IPTABLES_VERSION,
- .size = IPT_ALIGN(0),
- .userspacesize = IPT_ALIGN(0),
- .help = &help,
- .init = &init,
- .parse = &parse,
- .final_check = &final_check,
- .print = NULL, /* print */
- .save = NULL, /* save */
- .extra_opts = opts
+struct xtables_target notrack =
+{
+ .family = AF_INET,
+ .name = "NOTRACK",
+ .version = IPTABLES_VERSION,
+ .size = XT_ALIGN(0),
+ .userspacesize = XT_ALIGN(0),
+ .help = &help,
+ .init = &init,
+ .parse = &parse,
+ .final_check = &final_check,
+ .extra_opts = opts,
};
void _init(void)
{
- register_target(&notrack);
+ xtables_register_target(&notrack);
}