X-Git-Url: http://git.onelab.eu/?p=iptables.git;a=blobdiff_plain;f=extensions%2Flibip6t_udp.c;fp=extensions%2Flibip6t_udp.c;h=842581d95e9f1e4b3d77a91f2b02fb3fce9d9bdc;hp=139386cd0102a3e7c2838aeb31442bb3cf18a822;hb=6afea0b41dfbc3824956d11d960ad80097218feb;hpb=f7b70cf9e00324b89b02de213bcd0dde7044d035 diff --git a/extensions/libip6t_udp.c b/extensions/libip6t_udp.c index 139386c..842581d 100644 --- a/extensions/libip6t_udp.c +++ b/extensions/libip6t_udp.c @@ -109,7 +109,6 @@ parse(int c, char **argv, int invert, unsigned int *flags, if (invert) udpinfo->invflags |= IP6T_UDP_INV_SRCPT; *flags |= UDP_SRC_PORTS; - *nfcache |= NFC_IP6_SRC_PT; break; case '2': @@ -121,7 +120,6 @@ parse(int c, char **argv, int invert, unsigned int *flags, if (invert) udpinfo->invflags |= IP6T_UDP_INV_DSTPT; *flags |= UDP_DST_PORTS; - *nfcache |= NFC_IP6_DST_PT; break; default: @@ -233,20 +231,18 @@ static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match } } -static -struct ip6tables_match udp -= { NULL, - "udp", - IPTABLES_VERSION, - IP6T_ALIGN(sizeof(struct ip6t_udp)), - IP6T_ALIGN(sizeof(struct ip6t_udp)), - &help, - &init, - &parse, - &final_check, - &print, - &save, - opts +static struct ip6tables_match udp = { + .name = "udp", + .version = IPTABLES_VERSION, + .size = IP6T_ALIGN(sizeof(struct ip6t_udp)), + .userspacesize = IP6T_ALIGN(sizeof(struct ip6t_udp)), + .help = &help, + .init = &init, + .parse = &parse, + .final_check = &final_check, + .print = &print, + .save = &save, + .extra_opts = opts, }; void