[netfilter-cvslog] r3635 - trunk/iptables/extensions

laforge at netfilter.org laforge at netfilter.org
Tue Feb 1 16:38:21 CET 2005


Author: laforge at netfilter.org
Date: 2005-02-01 16:38:20 +0100 (Tue, 01 Feb 2005)
New Revision: 3635

Modified:
   trunk/iptables/extensions/libip6t_REJECT.c
   trunk/iptables/extensions/libip6t_ROUTE.c
   trunk/iptables/extensions/libip6t_eui64.c
   trunk/iptables/extensions/libip6t_hbh.c
   trunk/iptables/extensions/libip6t_icmpv6.c
   trunk/iptables/extensions/libip6t_ipv6header.c
   trunk/iptables/extensions/libip6t_length.c
   trunk/iptables/extensions/libip6t_limit.c
   trunk/iptables/extensions/libip6t_mac.c
   trunk/iptables/extensions/libip6t_mark.c
   trunk/iptables/extensions/libip6t_multiport.c
   trunk/iptables/extensions/libip6t_nth.c
   trunk/iptables/extensions/libip6t_owner.c
   trunk/iptables/extensions/libip6t_physdev.c
   trunk/iptables/extensions/libip6t_random.c
   trunk/iptables/extensions/libip6t_rt.c
   trunk/iptables/extensions/libip6t_standard.c
   trunk/iptables/extensions/libip6t_tcp.c
   trunk/iptables/extensions/libip6t_udp.c
Log:
make structure initializers use C99 standard (Harald Welte)


Modified: trunk/iptables/extensions/libip6t_REJECT.c
===================================================================
--- trunk/iptables/extensions/libip6t_REJECT.c	2005-02-01 15:22:20 UTC (rev 3634)
+++ trunk/iptables/extensions/libip6t_REJECT.c	2005-02-01 15:38:20 UTC (rev 3635)
@@ -152,19 +152,18 @@
 	printf("--reject-with %s ", reject_table[i].name);
 }
 
-struct ip6tables_target reject
-= { NULL,
-    "REJECT",
-    IPTABLES_VERSION,
-    IP6T_ALIGN(sizeof(struct ip6t_reject_info)),
-    IP6T_ALIGN(sizeof(struct ip6t_reject_info)),
-    &help,
-    &init,
-    &parse,
-    &final_check,
-    &print,
-    &save,
-    opts
+struct ip6tables_target reject = {
+	.name = "REJECT",
+	.version	= IPTABLES_VERSION,
+	.size 		= IP6T_ALIGN(sizeof(struct ip6t_reject_info)),
+	.userspacesize 	= IP6T_ALIGN(sizeof(struct ip6t_reject_info)),
+	.help		= &help,
+	.init		= &init,
+	.parse		= &parse,
+	.final_check	= &final_check,
+	.print		= &print,
+	.save		= &save,
+	.extra_opts	= opts,
 };
 
 void _init(void)

Modified: trunk/iptables/extensions/libip6t_ROUTE.c
===================================================================
--- trunk/iptables/extensions/libip6t_ROUTE.c	2005-02-01 15:22:20 UTC (rev 3634)
+++ trunk/iptables/extensions/libip6t_ROUTE.c	2005-02-01 15:38:20 UTC (rev 3635)
@@ -220,20 +220,18 @@
 }
 
 
-static
-struct ip6tables_target route
-= { NULL,
-    "ROUTE",
-    IPTABLES_VERSION,
-    IP6T_ALIGN(sizeof(struct ip6t_route_target_info)),
-    IP6T_ALIGN(sizeof(struct ip6t_route_target_info)),
-    &help,
-    &init,
-    &parse,
-    &final_check,
-    &print,
-    &save,
-    opts
+static struct ip6tables_target route = { 
+	.name 		= "ROUTE",
+	.version	= IPTABLES_VERSION,
+	.size		= IP6T_ALIGN(sizeof(struct ip6t_route_target_info)),
+	.userspacesize	= IP6T_ALIGN(sizeof(struct ip6t_route_target_info)),
+	.help		= &help,
+	.init		= &init,
+	.parse		= &parse,
+	.final_check	= &final_check,
+	.print		= &print,
+	.save		= &save,
+	.extra_opts	= opts,
 };
 
 void _init(void)

Modified: trunk/iptables/extensions/libip6t_eui64.c
===================================================================
--- trunk/iptables/extensions/libip6t_eui64.c	2005-02-01 15:22:20 UTC (rev 3634)
+++ trunk/iptables/extensions/libip6t_eui64.c	2005-02-01 15:38:20 UTC (rev 3635)
@@ -65,20 +65,18 @@
 
 }
 
-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,
+	.init		= &init,
+	.parse		= &parse,
+	.final_check	= &final_check,
+	.print		= &print,
+	.save		= &save,
+	.extra_opts	= opts,
 };
 
 void _init(void)

Modified: trunk/iptables/extensions/libip6t_hbh.c
===================================================================
--- trunk/iptables/extensions/libip6t_hbh.c	2005-02-01 15:22:20 UTC (rev 3634)
+++ trunk/iptables/extensions/libip6t_hbh.c	2005-02-01 15:38:20 UTC (rev 3635)
@@ -237,24 +237,22 @@
 
 }
 
-static
-struct ip6tables_match optstruct
-= { NULL,
+static struct ip6tables_match optstruct = {
 #if HOPBYHOP
-    "hbh",
+	.name 		= "hbh",
 #else
-    "dst",
+	.name		= "dst",
 #endif
-    IPTABLES_VERSION,
-    IP6T_ALIGN(sizeof(struct ip6t_opts)),
-    IP6T_ALIGN(sizeof(struct ip6t_opts)),
-    &help,
-    &init,
-    &parse,
-    &final_check,
-    &print,
-    &save,
-    opts
+	.version	= IPTABLES_VERSION,
+	.size		= IP6T_ALIGN(sizeof(struct ip6t_opts)),
+	.userspacesize	= IP6T_ALIGN(sizeof(struct ip6t_opts)),
+	.help		= &help,
+	.init		= &init,
+	.parse		= &parse,
+	.final_check	= &final_check,
+	.print		= &print,
+	.save		= &save,
+	.extra_opts	= opts,
 };
 
 void

Modified: trunk/iptables/extensions/libip6t_icmpv6.c
===================================================================
--- trunk/iptables/extensions/libip6t_icmpv6.c	2005-02-01 15:22:20 UTC (rev 3634)
+++ trunk/iptables/extensions/libip6t_icmpv6.c	2005-02-01 15:38:20 UTC (rev 3635)
@@ -257,19 +257,18 @@
 {
 }
 
-static struct ip6tables_match icmpv6
-= { NULL,
-    "icmp6",
-    IPTABLES_VERSION,
-    IP6T_ALIGN(sizeof(struct ip6t_icmp)),
-    IP6T_ALIGN(sizeof(struct ip6t_icmp)),
-    &help,
-    &init,
-    &parse,
-    &final_check,
-    &print,
-    &save,
-    opts
+static struct ip6tables_match icmpv6 = {
+	.name 		= "icmp6",
+	.version 	= IPTABLES_VERSION,
+	.size		= IP6T_ALIGN(sizeof(struct ip6t_icmp)),
+	.userspacesize	= IP6T_ALIGN(sizeof(struct ip6t_icmp)),
+	.help		= &help,
+	.init		= &init,
+	.parse		= &parse,
+	.final_check	= &final_check,
+	.print		= &print,
+	.save		= &save,
+	.extra_opts	= opts,
 };
 
 void _init(void)

Modified: trunk/iptables/extensions/libip6t_ipv6header.c
===================================================================
--- trunk/iptables/extensions/libip6t_ipv6header.c	2005-02-01 15:22:20 UTC (rev 3634)
+++ trunk/iptables/extensions/libip6t_ipv6header.c	2005-02-01 15:38:20 UTC (rev 3635)
@@ -298,19 +298,18 @@
 }
 
 static
-struct ip6tables_match ipv6header
-= { NULL,
-    "ipv6header",
-    IPTABLES_VERSION,
-    IP6T_ALIGN(sizeof(struct ip6t_ipv6header_info)),
-    IP6T_ALIGN(sizeof(struct ip6t_ipv6header_info)),
-    &help,
-    &init,
-    &parse,
-    &final_check,
-    &print,
-    &save,
-    opts
+struct ip6tables_match ipv6header = {
+	.name		= "ipv6header",
+	.version	= IPTABLES_VERSION,
+	.size		= IP6T_ALIGN(sizeof(struct ip6t_ipv6header_info)),
+	.userspacesize	= IP6T_ALIGN(sizeof(struct ip6t_ipv6header_info)),
+	.help		= &help,
+	.init		= &init,
+	.parse		= &parse,
+	.final_check	= &final_check,
+	.print		= &print,
+	.save		= &save,
+	.extra_opts	= opts,
 };
 
 void _init(void)

Modified: trunk/iptables/extensions/libip6t_length.c
===================================================================
--- trunk/iptables/extensions/libip6t_length.c	2005-02-01 15:22:20 UTC (rev 3634)
+++ trunk/iptables/extensions/libip6t_length.c	2005-02-01 15:38:20 UTC (rev 3635)
@@ -140,19 +140,18 @@
 	print_length((struct ip6t_length_info *)match->data);
 }
 
-struct ip6tables_match length
-= { NULL,
-    "length",
-    IPTABLES_VERSION,
-    IP6T_ALIGN(sizeof(struct ip6t_length_info)),
-    IP6T_ALIGN(sizeof(struct ip6t_length_info)),
-    &help,
-    &init,
-    &parse,
-    &final_check,
-    &print,
-    &save,
-    opts
+struct ip6tables_match length = {
+	.name		= "length",
+	.version	= IPTABLES_VERSION,
+	.size		= IP6T_ALIGN(sizeof(struct ip6t_length_info)),
+	.userspacesize	= IP6T_ALIGN(sizeof(struct ip6t_length_info)),
+	.help		= &help,
+	.init		= &init,
+	.parse		= &parse,
+	.final_check	= &final_check,
+	.print		= &print,
+	.save		= &save,
+	.extra_opts	= opts,
 };
 
 void _init(void)

Modified: trunk/iptables/extensions/libip6t_limit.c
===================================================================
--- trunk/iptables/extensions/libip6t_limit.c	2005-02-01 15:22:20 UTC (rev 3634)
+++ trunk/iptables/extensions/libip6t_limit.c	2005-02-01 15:38:20 UTC (rev 3635)
@@ -177,20 +177,18 @@
 		printf("--limit-burst %u ", r->burst);
 }
 
-static
-struct ip6tables_match limit
-= { NULL,
-    "limit",
-    IPTABLES_VERSION,
-    IP6T_ALIGN(sizeof(struct ip6t_rateinfo)),
-    offsetof(struct ip6t_rateinfo, prev),
-    &help,
-    &init,
-    &parse,
-    &final_check,
-    &print,
-    &save,
-    opts
+static struct ip6tables_match limit = {
+	.name 		= "limit",
+	.version	= IPTABLES_VERSION,
+	.size		= IP6T_ALIGN(sizeof(struct ip6t_rateinfo)),
+	.userspacesize	= offsetof(struct ip6t_rateinfo, prev),
+	.help		= &help,
+	.init		= &init,
+	.parse		= &parse,
+	.final_check	= &final_check,
+	.print		= &print,
+	.save		= &save,
+	.extra_opts	= opts,
 };
 
 void _init(void)

Modified: trunk/iptables/extensions/libip6t_mac.c
===================================================================
--- trunk/iptables/extensions/libip6t_mac.c	2005-02-01 15:22:20 UTC (rev 3634)
+++ trunk/iptables/extensions/libip6t_mac.c	2005-02-01 15:38:20 UTC (rev 3635)
@@ -128,20 +128,18 @@
 	print_mac(((struct ip6t_mac_info *)match->data)->srcaddr);
 }
 
-static
-struct ip6tables_match mac
-= { NULL,
-    "mac",
-    IPTABLES_VERSION,
-    IP6T_ALIGN(sizeof(struct ip6t_mac_info)),
-    IP6T_ALIGN(sizeof(struct ip6t_mac_info)),
-    &help,
-    &init,
-    &parse,
-    &final_check,
-    &print,
-    &save,
-    opts
+static struct ip6tables_match mac = {
+	.name		= "mac",
+	.version	= IPTABLES_VERSION,
+	.size		= IP6T_ALIGN(sizeof(struct ip6t_mac_info)),
+	.userspacesize	= IP6T_ALIGN(sizeof(struct ip6t_mac_info)),
+	.help		= &help,
+	.init		= &init,
+	.parse		= &parse,
+	.final_check	= &final_check,
+	.print		= &print,
+	.save		= &save,
+	.extra_opts	= opts,
 };
 
 void _init(void)

Modified: trunk/iptables/extensions/libip6t_mark.c
===================================================================
--- trunk/iptables/extensions/libip6t_mark.c	2005-02-01 15:22:20 UTC (rev 3634)
+++ trunk/iptables/extensions/libip6t_mark.c	2005-02-01 15:38:20 UTC (rev 3635)
@@ -131,20 +131,18 @@
 	print_mark(info->mark, info->mask, 0);
 }
 
-static
-struct ip6tables_match mark
-= { NULL,
-    "mark",
-    IPTABLES_VERSION,
-    IP6T_ALIGN(sizeof(struct ip6t_mark_info)),
-    IP6T_ALIGN(sizeof(struct ip6t_mark_info)),
-    &help,
-    &init,
-    &parse,
-    &final_check,
-    &print,
-    &save,
-    opts
+static struct ip6tables_match mark = {
+	.name		= "mark",
+	.version	= IPTABLES_VERSION,
+	.size		= IP6T_ALIGN(sizeof(struct ip6t_mark_info)),
+	.userspacesize	= IP6T_ALIGN(sizeof(struct ip6t_mark_info)),
+	.help		= &help,
+	.init		= &init,
+	.parse		= &parse,
+	.final_check	= &final_check,
+	.print		= &print,
+	.save		= &save,
+	.extra_opts	= opts,
 };
 
 void _init(void)

Modified: trunk/iptables/extensions/libip6t_multiport.c
===================================================================
--- trunk/iptables/extensions/libip6t_multiport.c	2005-02-01 15:22:20 UTC (rev 3634)
+++ trunk/iptables/extensions/libip6t_multiport.c	2005-02-01 15:38:20 UTC (rev 3635)
@@ -249,20 +249,18 @@
 	printf(" ");
 }
 
-static
-struct ip6tables_match multiport
-= { NULL,
-    "multiport",
-    IPTABLES_VERSION,
-    IP6T_ALIGN(sizeof(struct ip6t_multiport)),
-    IP6T_ALIGN(sizeof(struct ip6t_multiport)),
-    &help,
-    &init,
-    &parse,
-    &final_check,
-    &print,
-    &save,
-    opts
+static struct ip6tables_match multiport = {
+	.name		= "multiport",
+	.version	= IPTABLES_VERSION,
+	.size		= IP6T_ALIGN(sizeof(struct ip6t_multiport)),
+	.userspacesize	= IP6T_ALIGN(sizeof(struct ip6t_multiport)),
+	.help		= &help,
+	.init		= &init,
+	.parase		= &parse,
+	.final_check	= &final_check,
+	.print		= &print,
+	.save		= &save,
+	.extra_opts	= opts,
 };
 
 void

Modified: trunk/iptables/extensions/libip6t_nth.c
===================================================================
--- trunk/iptables/extensions/libip6t_nth.c	2005-02-01 15:22:20 UTC (rev 3634)
+++ trunk/iptables/extensions/libip6t_nth.c	2005-02-01 15:38:20 UTC (rev 3635)
@@ -217,19 +217,18 @@
                 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,
+	.init		= &init,
+	.parse		= &parse,
+	.final_check	= &final_check,
+	.print		= &print,
+	.save		= &save,
+	.extra_opts	= opts,
 };
 
 void _init(void)

Modified: trunk/iptables/extensions/libip6t_owner.c
===================================================================
--- trunk/iptables/extensions/libip6t_owner.c	2005-02-01 15:22:20 UTC (rev 3634)
+++ trunk/iptables/extensions/libip6t_owner.c	2005-02-01 15:38:20 UTC (rev 3635)
@@ -237,20 +237,18 @@
 #endif
 }
 
-static
-struct ip6tables_match owner
-= { NULL,
-    "owner",
-    IPTABLES_VERSION,
-    IP6T_ALIGN(sizeof(struct ip6t_owner_info)),
-    IP6T_ALIGN(sizeof(struct ip6t_owner_info)),
-    &help,
-    &init,
-    &parse,
-    &final_check,
-    &print,
-    &save,
-    opts
+static struct ip6tables_match owner = {
+	.name 		= "owner",
+	.version	= IPTABLES_VERSION,
+	.size		= IP6T_ALIGN(sizeof(struct ip6t_owner_info)),
+	.userspacesize	= IP6T_ALIGN(sizeof(struct ip6t_owner_info)),
+	.help		= &help,
+	.init		= &init,
+	.parse		= &parse,
+	.final_check	= &final_check,
+	.print		= &print,
+	.save		= &save,
+	.extra_opts	= opts,
 };
 
 void _init(void)

Modified: trunk/iptables/extensions/libip6t_physdev.c
===================================================================
--- trunk/iptables/extensions/libip6t_physdev.c	2005-02-01 15:22:20 UTC (rev 3634)
+++ trunk/iptables/extensions/libip6t_physdev.c	2005-02-01 15:38:20 UTC (rev 3635)
@@ -210,20 +210,18 @@
 	printf(" ");
 }
 
-static
-struct ip6tables_match physdev
-= { NULL,
-    "physdev",
-    IPTABLES_VERSION,
-    IP6T_ALIGN(sizeof(struct ip6t_physdev_info)),
-    IP6T_ALIGN(sizeof(struct ip6t_physdev_info)),
-    &help,
-    &init,
-    &parse,
-    &final_check,
-    &print,
-    &save,
-    opts
+static struct ip6tables_match physdev = {
+	.name		= "physdev",
+	.version	= IPTABLES_VERSION,
+	.size		= IP6T_ALIGN(sizeof(struct ip6t_physdev_info)),
+	.userspacesize	= IP6T_ALIGN(sizeof(struct ip6t_physdev_info)),
+	.help		= &help,
+	.init		= &init,
+	.parse		= &parse,
+	.final_check	= &final_check,
+	.print		= &print,
+	.save		= &save,
+	.extra_opts	= opts,
 };
 
 void _init(void)

Modified: trunk/iptables/extensions/libip6t_random.c
===================================================================
--- trunk/iptables/extensions/libip6t_random.c	2005-02-01 15:22:20 UTC (rev 3634)
+++ trunk/iptables/extensions/libip6t_random.c	2005-02-01 15:38:20 UTC (rev 3635)
@@ -131,19 +131,18 @@
 	printf("--average %u ", result.quot);
 }
 
-struct ip6tables_match rand_match
-= { NULL,
-    "random",
-    IPTABLES_VERSION,
-    IP6T_ALIGN(sizeof(struct ip6t_rand_info)),
-    IP6T_ALIGN(sizeof(struct ip6t_rand_info)),
-    &help,
-    &init,
-    &parse,
-    &final_check,
-    &print,
-    &save,
-    opts
+struct ip6tables_match rand_match = {
+	.name		= "random",
+	.version	= IPTABLES_VERSION,
+	.size		= IP6T_ALIGN(sizeof(struct ip6t_rand_info)),
+	.userspacesize	= IP6T_ALIGN(sizeof(struct ip6t_rand_info)),
+	.help		= &help,
+	.init		= &init,
+	.parse		= &parse,
+	.final_check	= &final_check,
+	.print		= &print
+	.save		= &save,
+	.extra_opts	= opts,
 };
 
 void _init(void)

Modified: trunk/iptables/extensions/libip6t_rt.c
===================================================================
--- trunk/iptables/extensions/libip6t_rt.c	2005-02-01 15:22:20 UTC (rev 3634)
+++ trunk/iptables/extensions/libip6t_rt.c	2005-02-01 15:38:20 UTC (rev 3635)
@@ -341,20 +341,18 @@
 
 }
 
-static
-struct ip6tables_match rt
-= { NULL,
-    "rt",
-    IPTABLES_VERSION,
-    IP6T_ALIGN(sizeof(struct ip6t_rt)),
-    IP6T_ALIGN(sizeof(struct ip6t_rt)),
-    &help,
-    &init,
-    &parse,
-    &final_check,
-    &print,
-    &save,
-    opts
+static struct ip6tables_match rt = {
+	.name		= "rt",
+	.version	= IPTABLES_VERSION,
+	.size		= IP6T_ALIGN(sizeof(struct ip6t_rt)),
+	.userspacesize	= IP6T_ALIGN(sizeof(struct ip6t_rt)),
+	.help		= &help,
+	.init		= &init,
+	.parse		= &parse,
+	.final_check	= &final_check,
+	.print		= &print,
+	.save		= &save,
+	.extra_opts	= opts,
 };
 
 void

Modified: trunk/iptables/extensions/libip6t_standard.c
===================================================================
--- trunk/iptables/extensions/libip6t_standard.c	2005-02-01 15:22:20 UTC (rev 3634)
+++ trunk/iptables/extensions/libip6t_standard.c	2005-02-01 15:38:20 UTC (rev 3635)
@@ -47,20 +47,17 @@
 {
 }
 
-static
-struct ip6tables_target standard
-= { NULL,
-    "standard",
-    IPTABLES_VERSION,
-    IP6T_ALIGN(sizeof(int)),
-    IP6T_ALIGN(sizeof(int)),
-    &help,
-    &init,
-    &parse,
-    &final_check,
-    NULL, /* print */
-    &save,
-    opts
+static struct ip6tables_target standard = {
+	.name		= "standard",
+	.version	= IPTABLES_VERSION,
+	.size		= IP6T_ALIGN(sizeof(int)),
+	.userspacesize	= IP6T_ALIGN(sizeof(int)),
+	.help		= &help,
+	.init		= &init,
+	.parse		= &parse,
+	.final_check	= &final_check,
+	.save		= &save,
+	.extra_opts	= opts,
 };
 
 void _init(void)

Modified: trunk/iptables/extensions/libip6t_tcp.c
===================================================================
--- trunk/iptables/extensions/libip6t_tcp.c	2005-02-01 15:22:20 UTC (rev 3634)
+++ trunk/iptables/extensions/libip6t_tcp.c	2005-02-01 15:38:20 UTC (rev 3635)
@@ -424,20 +424,19 @@
 	}
 }
 
-static
-struct ip6tables_match tcp
-= { NULL,
-    "tcp",
-    IPTABLES_VERSION,
-    IP6T_ALIGN(sizeof(struct ip6t_tcp)),
-    IP6T_ALIGN(sizeof(struct ip6t_tcp)),
-    &help,
-    &init,
-    &parse,
-    &final_check,
-    &print,
-    &save,
-    opts };
+static struct ip6tables_match tcp = {
+	.name 		= "tcp",
+	.version	= IPTABLES_VERSION,
+	.size		= IP6T_ALIGN(sizeof(struct ip6t_tcp)),
+	.userspacesize	= IP6T_ALIGN(sizeof(struct ip6t_tcp)),
+	.help		= &help,
+	.init		= &init,
+	.parse		= &parse,
+	.final_check	= &final_check
+	.print		= &print,
+	.save		= &save,
+	.extra_opts	= opts,
+};
 
 void
 _init(void)

Modified: trunk/iptables/extensions/libip6t_udp.c
===================================================================
--- trunk/iptables/extensions/libip6t_udp.c	2005-02-01 15:22:20 UTC (rev 3634)
+++ trunk/iptables/extensions/libip6t_udp.c	2005-02-01 15:38:20 UTC (rev 3635)
@@ -233,20 +233,18 @@
 	}
 }
 
-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




More information about the netfilter-cvslog mailing list