From 857ff8b030f701838ce077a7fee68f5b007cd429 Mon Sep 17 00:00:00 2001 From: Yasuyuki KOZAKAI Date: Tue, 24 Jul 2007 06:41:01 +0000 Subject: Use unified API in NOTRACK target. --- extensions/libipt_NOTRACK.c | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) (limited to 'extensions') diff --git a/extensions/libipt_NOTRACK.c b/extensions/libipt_NOTRACK.c index 7aec15c8..2276eb62 100644 --- a/extensions/libipt_NOTRACK.c +++ b/extensions/libipt_NOTRACK.c @@ -4,8 +4,8 @@ #include #include -#include -#include +#include +#include /* 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(¬rack); + xtables_register_target(¬rack); } -- cgit v1.2.3