X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=extensions%2Flibip6t_nth.c;h=19b13f796d4ae539a87e3dcada64c1e3adc87253;hb=6afea0b41dfbc3824956d11d960ad80097218feb;hp=638074d583565686b2061f35a5dc2e4dfe279abb;hpb=f7b70cf9e00324b89b02de213bcd0dde7044d035;p=iptables.git diff --git a/extensions/libip6t_nth.c b/extensions/libip6t_nth.c index 638074d..19b13f7 100644 --- a/extensions/libip6t_nth.c +++ b/extensions/libip6t_nth.c @@ -50,13 +50,6 @@ static struct option opts[] = { { 0 } }; -/* Initialize the target. */ -static void -init(struct ip6t_entry_match *m, unsigned int *nfcache) -{ - *nfcache |= NFC_UNKNOWN; -} - #define IP6T_NTH_OPT_EVERY 0x01 #define IP6T_NTH_OPT_NOT_EVERY 0x02 #define IP6T_NTH_OPT_START 0x04 @@ -217,19 +210,17 @@ save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match) printf("--packet %u ", nthinfo->packet ); } -struct ip6tables_match nth -= { NULL, - "nth", - IPTABLES_VERSION, - IP6T_ALIGN(sizeof(struct ip6t_nth_info)), - IP6T_ALIGN(sizeof(struct ip6t_nth_info)), - &help, - &init, - &parse, - &final_check, - &print, - &save, - opts +struct ip6tables_match nth = { + .name = "nth", + .version = IPTABLES_VERSION, + .size = IP6T_ALIGN(sizeof(struct ip6t_nth_info)), + .userspacesize = IP6T_ALIGN(sizeof(struct ip6t_nth_info)), + .help = &help, + .parse = &parse, + .final_check = &final_check, + .print = &print, + .save = &save, + .extra_opts = opts, }; void _init(void)