X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=extensions%2Flibipt_unclean.c;h=7b9b3e4269e4b2c44376571fa657d54c077272d3;hb=6afea0b41dfbc3824956d11d960ad80097218feb;hp=16cc0a51bac0cf854ee61216b25cc0f405c97760;hpb=f7b70cf9e00324b89b02de213bcd0dde7044d035;p=iptables.git diff --git a/extensions/libipt_unclean.c b/extensions/libipt_unclean.c index 16cc0a5..7b9b3e4 100644 --- a/extensions/libipt_unclean.c +++ b/extensions/libipt_unclean.c @@ -17,14 +17,6 @@ static struct option opts[] = { {0} }; -/* Initialize the match. */ -static void -init(struct ipt_entry_match *m, unsigned int *nfcache) -{ - /* Can't cache this. */ - *nfcache |= NFC_UNKNOWN; -} - /* Function which parses command options; returns true if it ate an option */ static int @@ -42,19 +34,18 @@ static void final_check(unsigned int flags) } static -struct iptables_match unclean -= { NULL, - "unclean", - IPTABLES_VERSION, - IPT_ALIGN(0), - IPT_ALIGN(0), - &help, - &init, - &parse, - &final_check, - NULL, /* print */ - NULL, /* save */ - opts +struct iptables_match unclean = { + .next = NULL, + .name = "unclean", + .version = IPTABLES_VERSION, + .size = IPT_ALIGN(0), + .userspacesize = IPT_ALIGN(0), + .help = &help, + .parse = &parse, + .final_check = &final_check, + .print = NULL, + .save = NULL, + .extra_opts = opts }; void _init(void)