X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=extensions%2Flibip6t_eui64.c;h=c74b04dbae94fb064ac6d10ccf2368b3e50338ea;hb=6afea0b41dfbc3824956d11d960ad80097218feb;hp=56dca06c713234010c7a0438038051b1bc117c3b;hpb=f7b70cf9e00324b89b02de213bcd0dde7044d035;p=iptables.git diff --git a/extensions/libip6t_eui64.c b/extensions/libip6t_eui64.c index 56dca06..c74b04d 100644 --- a/extensions/libip6t_eui64.c +++ b/extensions/libip6t_eui64.c @@ -26,14 +26,6 @@ static struct option opts[] = { {0} }; -/* Initialize the match. */ -static void -init(struct ip6t_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 @@ -65,20 +57,17 @@ static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match } -static -struct ip6tables_match eui64 -= { NULL, - "eui64", - IPTABLES_VERSION, - IP6T_ALIGN(sizeof(int)), - IP6T_ALIGN(sizeof(int)), - &help, - &init, - &parse, - &final_check, - &print, - &save, - opts +static struct ip6tables_match eui64 = { + .name = "eui64", + .version = IPTABLES_VERSION, + .size = IP6T_ALIGN(sizeof(int)), + .userspacesize = IP6T_ALIGN(sizeof(int)), + .help = &help, + .parse = &parse, + .final_check = &final_check, + .print = &print, + .save = &save, + .extra_opts = opts, }; void _init(void)