iptables-1.3.2-20050720
[iptables.git] / extensions / libip6t_udp.c
index 139386c..842581d 100644 (file)
@@ -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