From 173fd4a2374c0c2be719ea5c4d7346cc0cac07f0 Mon Sep 17 00:00:00 2001 From: "/C=JP/ST=JP/CN=Yasuyuki Kozakai/emailAddress=yasuyuki@netfilter.org" Date: Mon, 30 Jul 2007 13:38:44 +0000 Subject: Remove the .next=NULL field. This is automatically initialized to zero. I've kept .print=NULL and .save=NULL so it stands out (since iptables will do the print/save then). Signed-off-by: Jan Engelhardt --- extensions/libip6t_TRACE.c | 2 +- extensions/libip6t_state.c | 1 - extensions/libipt_CLASSIFY.c | 1 - extensions/libipt_CLUSTERIP.c | 1 - extensions/libipt_CONNSECMARK.c | 1 - extensions/libipt_DNAT.c | 1 - extensions/libipt_DSCP.c | 1 - extensions/libipt_ECN.c | 1 - extensions/libipt_MARK.c | 2 -- extensions/libipt_MIRROR.c | 1 - extensions/libipt_NETMAP.c | 1 - extensions/libipt_REDIRECT.c | 1 - extensions/libipt_REJECT.c | 1 - extensions/libipt_SAME.c | 1 - extensions/libipt_SNAT.c | 1 - extensions/libipt_TOS.c | 1 - extensions/libipt_TRACE.c | 2 +- extensions/libipt_ULOG.c | 1 - extensions/libipt_addrtype.c | 1 - extensions/libipt_ah.c | 1 - extensions/libipt_connbytes.c | 1 - extensions/libipt_connrate.c | 1 - extensions/libipt_conntrack.c | 1 - extensions/libipt_helper.c | 1 - extensions/libipt_icmp.c | 1 - extensions/libipt_iprange.c | 1 - extensions/libipt_owner.c | 1 - extensions/libipt_recent.c | 1 - extensions/libipt_state.c | 1 - extensions/libipt_tos.c | 1 - extensions/libipt_ttl.c | 1 - extensions/libipt_unclean.c | 1 - extensions/libxt_NFQUEUE.c | 2 -- extensions/libxt_SECMARK.c | 2 -- extensions/libxt_TCPMSS.c | 2 -- extensions/libxt_comment.c | 2 -- extensions/libxt_dscp.c | 2 -- extensions/libxt_esp.c | 2 -- extensions/libxt_length.c | 2 -- extensions/libxt_limit.c | 2 -- extensions/libxt_mac.c | 2 -- extensions/libxt_mark.c | 2 -- extensions/libxt_multiport.c | 4 ---- extensions/libxt_physdev.c | 2 -- extensions/libxt_pkttype.c | 2 -- extensions/libxt_quota.c | 2 -- extensions/libxt_standard.c | 2 -- extensions/libxt_tcp.c | 2 -- extensions/libxt_tcpmss.c | 2 -- extensions/libxt_udp.c | 2 -- 50 files changed, 2 insertions(+), 71 deletions(-) diff --git a/extensions/libip6t_TRACE.c b/extensions/libip6t_TRACE.c index 2fc786f..edbb416 100644 --- a/extensions/libip6t_TRACE.c +++ b/extensions/libip6t_TRACE.c @@ -43,7 +43,7 @@ final_check(unsigned int flags) static struct ip6tables_target trace -= { .next = NULL, += { .name = "TRACE", .version = IPTABLES_VERSION, .size = IP6T_ALIGN(0), diff --git a/extensions/libip6t_state.c b/extensions/libip6t_state.c index 01647a6..b7c2517 100644 --- a/extensions/libip6t_state.c +++ b/extensions/libip6t_state.c @@ -144,7 +144,6 @@ static void save(const void *ip, const struct xt_entry_match *match) } static struct ip6tables_match state = { - .next = NULL, .name = "state", .version = IPTABLES_VERSION, .size = IP6T_ALIGN(sizeof(struct ipt_state_info)), diff --git a/extensions/libipt_CLASSIFY.c b/extensions/libipt_CLASSIFY.c index 16e47ac..044ea95 100644 --- a/extensions/libipt_CLASSIFY.c +++ b/extensions/libipt_CLASSIFY.c @@ -109,7 +109,6 @@ save(const void *ip, const struct xt_entry_target *target) } static struct iptables_target classify = { - .next = NULL, .name = "CLASSIFY", .version = IPTABLES_VERSION, .size = IPT_ALIGN(sizeof(struct ipt_classify_target_info)), diff --git a/extensions/libipt_CLUSTERIP.c b/extensions/libipt_CLUSTERIP.c index 036a98e..30ae3bf 100644 --- a/extensions/libipt_CLUSTERIP.c +++ b/extensions/libipt_CLUSTERIP.c @@ -248,7 +248,6 @@ save(const void *ip, const struct xt_entry_target *target) } static struct iptables_target clusterip = { - .next = NULL, .name = "CLUSTERIP", .version = IPTABLES_VERSION, .size = IPT_ALIGN(sizeof(struct ipt_clusterip_tgt_info)), diff --git a/extensions/libipt_CONNSECMARK.c b/extensions/libipt_CONNSECMARK.c index bb6fb28..191cd9a 100644 --- a/extensions/libipt_CONNSECMARK.c +++ b/extensions/libipt_CONNSECMARK.c @@ -106,7 +106,6 @@ static void save(const void *ip, const struct xt_entry_target *target) } static struct iptables_target connsecmark = { - .next = NULL, .name = "CONNSECMARK", .version = IPTABLES_VERSION, .revision = 0, diff --git a/extensions/libipt_DNAT.c b/extensions/libipt_DNAT.c index 21b79ad..0d78763 100644 --- a/extensions/libipt_DNAT.c +++ b/extensions/libipt_DNAT.c @@ -249,7 +249,6 @@ save(const void *ip, const struct xt_entry_target *target) } static struct iptables_target dnat = { - .next = NULL, .name = "DNAT", .version = IPTABLES_VERSION, .size = IPT_ALIGN(sizeof(struct ip_nat_multi_range)), diff --git a/extensions/libipt_DSCP.c b/extensions/libipt_DSCP.c index 8845af2..b1a0df0 100644 --- a/extensions/libipt_DSCP.c +++ b/extensions/libipt_DSCP.c @@ -144,7 +144,6 @@ save(const void *ip, const struct xt_entry_target *target) } static struct iptables_target dscp = { - .next = NULL, .name = "DSCP", .version = IPTABLES_VERSION, .size = IPT_ALIGN(sizeof(struct ipt_DSCP_info)), diff --git a/extensions/libipt_ECN.c b/extensions/libipt_ECN.c index ce808aa..7c6c293 100644 --- a/extensions/libipt_ECN.c +++ b/extensions/libipt_ECN.c @@ -165,7 +165,6 @@ save(const void *ip, const struct xt_entry_target *target) static struct iptables_target ecn = { - .next = NULL, .name = "ECN", .version = IPTABLES_VERSION, .size = IPT_ALIGN(sizeof(struct ipt_ECN_info)), diff --git a/extensions/libipt_MARK.c b/extensions/libipt_MARK.c index 62329ab..6a94718 100644 --- a/extensions/libipt_MARK.c +++ b/extensions/libipt_MARK.c @@ -187,7 +187,6 @@ save_v1(const void *ip, const struct xt_entry_target *target) static struct iptables_target mark_v0 = { - .next = NULL, .name = "MARK", .version = IPTABLES_VERSION, .revision = 0, @@ -204,7 +203,6 @@ struct iptables_target mark_v0 = { static struct iptables_target mark_v1 = { - .next = NULL, .name = "MARK", .version = IPTABLES_VERSION, .revision = 1, diff --git a/extensions/libipt_MIRROR.c b/extensions/libipt_MIRROR.c index c02807b..02923b8 100644 --- a/extensions/libipt_MIRROR.c +++ b/extensions/libipt_MIRROR.c @@ -42,7 +42,6 @@ final_check(unsigned int flags) } static struct iptables_target mirror = { - .next = NULL, .name = "MIRROR", .version = IPTABLES_VERSION, .size = IPT_ALIGN(0), diff --git a/extensions/libipt_NETMAP.c b/extensions/libipt_NETMAP.c index d296d31..302448f 100644 --- a/extensions/libipt_NETMAP.c +++ b/extensions/libipt_NETMAP.c @@ -178,7 +178,6 @@ save(const void *ip, const struct xt_entry_target *target) } static struct iptables_target target_module = { - .next = NULL, .name = MODULENAME, .version = IPTABLES_VERSION, .size = IPT_ALIGN(sizeof(struct ip_nat_multi_range)), diff --git a/extensions/libipt_REDIRECT.c b/extensions/libipt_REDIRECT.c index ee42eb7..0aff8be 100644 --- a/extensions/libipt_REDIRECT.c +++ b/extensions/libipt_REDIRECT.c @@ -170,7 +170,6 @@ save(const void *ip, const struct xt_entry_target *target) } static struct iptables_target redir = { - .next = NULL, .name = "REDIRECT", .version = IPTABLES_VERSION, .size = IPT_ALIGN(sizeof(struct ip_nat_multi_range)), diff --git a/extensions/libipt_REJECT.c b/extensions/libipt_REJECT.c index d41603f..4e083f3 100644 --- a/extensions/libipt_REJECT.c +++ b/extensions/libipt_REJECT.c @@ -169,7 +169,6 @@ static void save(const void *ip, const struct xt_entry_target *target) } static struct iptables_target reject = { - .next = NULL, .name = "REJECT", .version = IPTABLES_VERSION, .size = IPT_ALIGN(sizeof(struct ipt_reject_info)), diff --git a/extensions/libipt_SAME.c b/extensions/libipt_SAME.c index 83ab7cd..b14c501 100644 --- a/extensions/libipt_SAME.c +++ b/extensions/libipt_SAME.c @@ -216,7 +216,6 @@ save(const void *ip, const struct xt_entry_target *target) } static struct iptables_target same = { - .next = NULL, .name = "SAME", .version = IPTABLES_VERSION, .size = IPT_ALIGN(sizeof(struct ipt_same_info)), diff --git a/extensions/libipt_SNAT.c b/extensions/libipt_SNAT.c index ead5ab8..a18e36a 100644 --- a/extensions/libipt_SNAT.c +++ b/extensions/libipt_SNAT.c @@ -251,7 +251,6 @@ save(const void *ip, const struct xt_entry_target *target) } static struct iptables_target snat = { - .next = NULL, .name = "SNAT", .version = IPTABLES_VERSION, .size = IPT_ALIGN(sizeof(struct ip_nat_multi_range)), diff --git a/extensions/libipt_TOS.c b/extensions/libipt_TOS.c index 1143c0c..b1e7186 100644 --- a/extensions/libipt_TOS.c +++ b/extensions/libipt_TOS.c @@ -154,7 +154,6 @@ save(const void *ip, const struct xt_entry_target *target) } static struct iptables_target tos = { - .next = NULL, .name = "TOS", .version = IPTABLES_VERSION, .size = IPT_ALIGN(sizeof(struct ipt_tos_target_info)), diff --git a/extensions/libipt_TRACE.c b/extensions/libipt_TRACE.c index f2a5d32..22652cb 100644 --- a/extensions/libipt_TRACE.c +++ b/extensions/libipt_TRACE.c @@ -43,7 +43,7 @@ final_check(unsigned int flags) static struct iptables_target trace -= { .next = NULL, += { .name = "TRACE", .version = IPTABLES_VERSION, .size = IPT_ALIGN(0), diff --git a/extensions/libipt_ULOG.c b/extensions/libipt_ULOG.c index cf1dd4f..88fc16d 100644 --- a/extensions/libipt_ULOG.c +++ b/extensions/libipt_ULOG.c @@ -193,7 +193,6 @@ print(const void *ip, } static struct iptables_target ulog = { - .next = NULL, .name = "ULOG", .version = IPTABLES_VERSION, .size = IPT_ALIGN(sizeof(struct ipt_ulog_info)), diff --git a/extensions/libipt_addrtype.c b/extensions/libipt_addrtype.c index 144a702..ed8b204 100644 --- a/extensions/libipt_addrtype.c +++ b/extensions/libipt_addrtype.c @@ -187,7 +187,6 @@ static struct option opts[] = { static struct iptables_match addrtype = { - .next = NULL, .name = "addrtype", .version = IPTABLES_VERSION, .size = IPT_ALIGN(sizeof(struct ipt_addrtype_info)), diff --git a/extensions/libipt_ah.c b/extensions/libipt_ah.c index ec01f82..3bc2d8d 100644 --- a/extensions/libipt_ah.c +++ b/extensions/libipt_ah.c @@ -169,7 +169,6 @@ static void save(const void *ip, const struct xt_entry_match *match) } static struct iptables_match ah = { - .next = NULL, .name = "ah", .version = IPTABLES_VERSION, .size = IPT_ALIGN(sizeof(struct ipt_ah)), diff --git a/extensions/libipt_connbytes.c b/extensions/libipt_connbytes.c index 69b39bd..9b40d5a 100644 --- a/extensions/libipt_connbytes.c +++ b/extensions/libipt_connbytes.c @@ -186,7 +186,6 @@ static void save(const void *ip, const struct xt_entry_match *match) } static struct iptables_match state = { - .next = NULL, .name = "connbytes", .version = IPTABLES_VERSION, .size = IPT_ALIGN(sizeof(struct ipt_connbytes_info)), diff --git a/extensions/libipt_connrate.c b/extensions/libipt_connrate.c index 2792050..9a7563e 100644 --- a/extensions/libipt_connrate.c +++ b/extensions/libipt_connrate.c @@ -160,7 +160,6 @@ static void save(const void *ip, const struct xt_entry_match *match) } static struct iptables_match state = { - .next = NULL, .name = "connrate", .version = IPTABLES_VERSION, .size = IPT_ALIGN(sizeof(struct ipt_connrate_info)), diff --git a/extensions/libipt_conntrack.c b/extensions/libipt_conntrack.c index 15d4264..b50a58b 100644 --- a/extensions/libipt_conntrack.c +++ b/extensions/libipt_conntrack.c @@ -505,7 +505,6 @@ static void save(const void *ip, const struct xt_entry_match *match) } static struct iptables_match conntrack = { - .next = NULL, .name = "conntrack", .version = IPTABLES_VERSION, .size = IPT_ALIGN(sizeof(struct ipt_conntrack_info)), diff --git a/extensions/libipt_helper.c b/extensions/libipt_helper.c index 3c1c739..e577255 100644 --- a/extensions/libipt_helper.c +++ b/extensions/libipt_helper.c @@ -83,7 +83,6 @@ save(const void *ip, const struct xt_entry_match *match) } static struct iptables_match helper = { - .next = NULL, .name = "helper", .version = IPTABLES_VERSION, .size = IPT_ALIGN(sizeof(struct ipt_helper_info)), diff --git a/extensions/libipt_icmp.c b/extensions/libipt_icmp.c index 4cbccd5..21da4ea 100644 --- a/extensions/libipt_icmp.c +++ b/extensions/libipt_icmp.c @@ -287,7 +287,6 @@ static void final_check(unsigned int flags) } static struct iptables_match icmp = { - .next = NULL, .name = "icmp", .version = IPTABLES_VERSION, .size = IPT_ALIGN(sizeof(struct ipt_icmp)), diff --git a/extensions/libipt_iprange.c b/extensions/libipt_iprange.c index 78096e1..3a039b1 100644 --- a/extensions/libipt_iprange.c +++ b/extensions/libipt_iprange.c @@ -165,7 +165,6 @@ save(const void *ip, const struct xt_entry_match *match) } static struct iptables_match iprange = { - .next = NULL, .name = "iprange", .version = IPTABLES_VERSION, .size = IPT_ALIGN(sizeof(struct ipt_iprange_info)), diff --git a/extensions/libipt_owner.c b/extensions/libipt_owner.c index b65a15c..c721774 100644 --- a/extensions/libipt_owner.c +++ b/extensions/libipt_owner.c @@ -231,7 +231,6 @@ save(const void *ip, const struct xt_entry_match *match) } static struct iptables_match owner = { - .next = NULL, .name = "owner", .version = IPTABLES_VERSION, .size = IPT_ALIGN(sizeof(struct ipt_owner_info)), diff --git a/extensions/libipt_recent.c b/extensions/libipt_recent.c index 2c38ad3..38d5871 100644 --- a/extensions/libipt_recent.c +++ b/extensions/libipt_recent.c @@ -220,7 +220,6 @@ save(const void *ip, const struct xt_entry_match *match) /* Structure for iptables to use to communicate with module */ static struct iptables_match recent = { - .next = NULL, .name = "recent", .version = IPTABLES_VERSION, .size = IPT_ALIGN(sizeof(struct ipt_recent_info)), diff --git a/extensions/libipt_state.c b/extensions/libipt_state.c index fcfee46..a6d9dc3 100644 --- a/extensions/libipt_state.c +++ b/extensions/libipt_state.c @@ -144,7 +144,6 @@ static void save(const void *ip, const struct xt_entry_match *match) } static struct iptables_match state = { - .next = NULL, .name = "state", .version = IPTABLES_VERSION, .size = IPT_ALIGN(sizeof(struct ipt_state_info)), diff --git a/extensions/libipt_tos.c b/extensions/libipt_tos.c index 6ee1abc..efc216c 100644 --- a/extensions/libipt_tos.c +++ b/extensions/libipt_tos.c @@ -153,7 +153,6 @@ save(const void *ip, const struct xt_entry_match *match) } static struct iptables_match tos = { - .next = NULL, .name = "tos", .version = IPTABLES_VERSION, .size = IPT_ALIGN(sizeof(struct ipt_tos_info)), diff --git a/extensions/libipt_ttl.c b/extensions/libipt_ttl.c index 79bddca..5409dee 100644 --- a/extensions/libipt_ttl.c +++ b/extensions/libipt_ttl.c @@ -152,7 +152,6 @@ static struct option opts[] = { }; static struct iptables_match ttl = { - .next = NULL, .name = "ttl", .version = IPTABLES_VERSION, .size = IPT_ALIGN(sizeof(struct ipt_ttl_info)), diff --git a/extensions/libipt_unclean.c b/extensions/libipt_unclean.c index 2af1442..8bb2963 100644 --- a/extensions/libipt_unclean.c +++ b/extensions/libipt_unclean.c @@ -35,7 +35,6 @@ static void final_check(unsigned int flags) static struct iptables_match unclean = { - .next = NULL, .name = "unclean", .version = IPTABLES_VERSION, .size = IPT_ALIGN(0), diff --git a/extensions/libxt_NFQUEUE.c b/extensions/libxt_NFQUEUE.c index 558e80b..7b3dcec 100644 --- a/extensions/libxt_NFQUEUE.c +++ b/extensions/libxt_NFQUEUE.c @@ -94,7 +94,6 @@ save(const void *ip, const struct xt_entry_target *target) } static struct xtables_target nfqueue = { - .next = NULL, .family = AF_INET, .name = "NFQUEUE", .version = IPTABLES_VERSION, @@ -110,7 +109,6 @@ static struct xtables_target nfqueue = { }; static struct xtables_target nfqueue6 = { - .next = NULL, .family = AF_INET6, .name = "NFQUEUE", .version = IPTABLES_VERSION, diff --git a/extensions/libxt_SECMARK.c b/extensions/libxt_SECMARK.c index 38aaca9..8bf19bc 100644 --- a/extensions/libxt_SECMARK.c +++ b/extensions/libxt_SECMARK.c @@ -104,7 +104,6 @@ static void save(const void *ip, const struct xt_entry_target *target) } static struct xtables_target secmark = { - .next = NULL, .family = AF_INET, .name = "SECMARK", .version = IPTABLES_VERSION, @@ -121,7 +120,6 @@ static struct xtables_target secmark = { }; static struct xtables_target secmark6 = { - .next = NULL, .family = AF_INET6, .name = "SECMARK", .version = IPTABLES_VERSION, diff --git a/extensions/libxt_TCPMSS.c b/extensions/libxt_TCPMSS.c index d5b6c1f..cd2fc42 100644 --- a/extensions/libxt_TCPMSS.c +++ b/extensions/libxt_TCPMSS.c @@ -140,7 +140,6 @@ save(const void *ip, const struct xt_entry_target *target) } static struct xtables_target mss = { - .next = NULL, .family = AF_INET, .name = "TCPMSS", .version = IPTABLES_VERSION, @@ -156,7 +155,6 @@ static struct xtables_target mss = { }; static struct xtables_target mss6 = { - .next = NULL, .family = AF_INET6, .name = "TCPMSS", .version = IPTABLES_VERSION, diff --git a/extensions/libxt_comment.c b/extensions/libxt_comment.c index 9a0c960..770a3ec 100644 --- a/extensions/libxt_comment.c +++ b/extensions/libxt_comment.c @@ -100,7 +100,6 @@ save(const void *ip, const struct xt_entry_match *match) } static struct xtables_match comment = { - .next = NULL, .family = AF_INET, .name = "comment", .version = IPTABLES_VERSION, @@ -115,7 +114,6 @@ static struct xtables_match comment = { }; static struct xtables_match comment6 = { - .next = NULL, .family = AF_INET6, .name = "comment", .version = IPTABLES_VERSION, diff --git a/extensions/libxt_dscp.c b/extensions/libxt_dscp.c index 8ca7444..3f5f6c6 100644 --- a/extensions/libxt_dscp.c +++ b/extensions/libxt_dscp.c @@ -153,7 +153,6 @@ save(const void *ip, const struct xt_entry_match *match) } static struct xtables_match dscp = { - .next = NULL, .family = AF_INET, .name = "dscp", .version = IPTABLES_VERSION, @@ -168,7 +167,6 @@ static struct xtables_match dscp = { }; static struct xtables_match dscp6 = { - .next = NULL, .family = AF_INET6, .name = "dscp", .version = IPTABLES_VERSION, diff --git a/extensions/libxt_esp.c b/extensions/libxt_esp.c index 401c104..7eb030e 100644 --- a/extensions/libxt_esp.c +++ b/extensions/libxt_esp.c @@ -165,7 +165,6 @@ static void save(const void *ip, const struct xt_entry_match *match) } static struct xtables_match esp = { - .next = NULL, .family = AF_INET, .name = "esp", .version = IPTABLES_VERSION, @@ -181,7 +180,6 @@ static struct xtables_match esp = { }; static struct xtables_match esp6 = { - .next = NULL, .family = AF_INET6, .name = "esp", .version = IPTABLES_VERSION, diff --git a/extensions/libxt_length.c b/extensions/libxt_length.c index 5b6453e..345423d 100644 --- a/extensions/libxt_length.c +++ b/extensions/libxt_length.c @@ -132,7 +132,6 @@ save(const void *ip, const struct xt_entry_match *match) } static struct xtables_match length = { - .next = NULL, .family = AF_INET, .name = "length", .version = IPTABLES_VERSION, @@ -147,7 +146,6 @@ static struct xtables_match length = { }; static struct xtables_match length6 = { - .next = NULL, .family = AF_INET6, .name = "length", .version = IPTABLES_VERSION, diff --git a/extensions/libxt_limit.c b/extensions/libxt_limit.c index aa7131d..c85536b 100644 --- a/extensions/libxt_limit.c +++ b/extensions/libxt_limit.c @@ -176,7 +176,6 @@ static void save(const void *ip, const struct xt_entry_match *match) } static struct xtables_match limit = { - .next = NULL, .family = AF_INET, .name = "limit", .version = IPTABLES_VERSION, @@ -192,7 +191,6 @@ static struct xtables_match limit = { }; static struct xtables_match limit6 = { - .next = NULL, .family = AF_INET6, .name = "limit", .version = IPTABLES_VERSION, diff --git a/extensions/libxt_mac.c b/extensions/libxt_mac.c index 61da13b..b907594 100644 --- a/extensions/libxt_mac.c +++ b/extensions/libxt_mac.c @@ -121,7 +121,6 @@ static void save(const void *ip, const struct xt_entry_match *match) } static struct xtables_match mac = { - .next = NULL, .family = AF_INET, .name = "mac", .version = IPTABLES_VERSION, @@ -136,7 +135,6 @@ static struct xtables_match mac = { }; static struct xtables_match mac6 = { - .next = NULL, .family = AF_INET6, .name = "mac", .version = IPTABLES_VERSION, diff --git a/extensions/libxt_mark.c b/extensions/libxt_mark.c index 97771b0..04104d1 100644 --- a/extensions/libxt_mark.c +++ b/extensions/libxt_mark.c @@ -105,7 +105,6 @@ save(const void *ip, const struct xt_entry_match *match) } static struct xtables_match mark = { - .next = NULL, .family = AF_INET, .name = "mark", .version = IPTABLES_VERSION, @@ -120,7 +119,6 @@ static struct xtables_match mark = { }; static struct xtables_match mark6 = { - .next = NULL, .family = AF_INET6, .name = "mark", .version = IPTABLES_VERSION, diff --git a/extensions/libxt_multiport.c b/extensions/libxt_multiport.c index 7d7c266..274a583 100644 --- a/extensions/libxt_multiport.c +++ b/extensions/libxt_multiport.c @@ -520,7 +520,6 @@ static void save6_v1(const void *ip_void, const struct xt_entry_match *match) } static struct xtables_match multiport = { - .next = NULL, .family = AF_INET, .name = "multiport", .revision = 0, @@ -537,7 +536,6 @@ static struct xtables_match multiport = { }; static struct xtables_match multiport6 = { - .next = NULL, .family = AF_INET6, .name = "multiport", .revision = 0, @@ -554,7 +552,6 @@ static struct xtables_match multiport6 = { }; static struct xtables_match multiport_v1 = { - .next = NULL, .family = AF_INET, .name = "multiport", .version = IPTABLES_VERSION, @@ -571,7 +568,6 @@ static struct xtables_match multiport_v1 = { }; static struct xtables_match multiport6_v1 = { - .next = NULL, .family = AF_INET6, .name = "multiport", .version = IPTABLES_VERSION, diff --git a/extensions/libxt_physdev.c b/extensions/libxt_physdev.c index 397c5e9..0f862c0 100644 --- a/extensions/libxt_physdev.c +++ b/extensions/libxt_physdev.c @@ -173,7 +173,6 @@ static void save(const void *ip, const struct xt_entry_match *match) } static struct xtables_match physdev = { - .next = NULL, .family = AF_INET, .name = "physdev", .version = IPTABLES_VERSION, @@ -189,7 +188,6 @@ static struct xtables_match physdev = { }; static struct xtables_match physdev6 = { - .next = NULL, .family = AF_INET6, .name = "physdev", .version = IPTABLES_VERSION, diff --git a/extensions/libxt_pkttype.c b/extensions/libxt_pkttype.c index 9654226..81cd943 100644 --- a/extensions/libxt_pkttype.c +++ b/extensions/libxt_pkttype.c @@ -148,7 +148,6 @@ static void save(const void *ip, const struct xt_entry_match *match) } static struct xtables_match pkttype = { - .next = NULL, .family = AF_INET, .name = "pkttype", .version = IPTABLES_VERSION, @@ -163,7 +162,6 @@ static struct xtables_match pkttype = { }; static struct xtables_match pkttype6 = { - .next = NULL, .family = AF_INET6, .name = "pkttype", .version = IPTABLES_VERSION, diff --git a/extensions/libxt_quota.c b/extensions/libxt_quota.c index a273b29..f97f02c 100644 --- a/extensions/libxt_quota.c +++ b/extensions/libxt_quota.c @@ -86,7 +86,6 @@ final_check(unsigned int flags) } struct xtables_match quota = { - .next = NULL, .family = AF_INET, .name = "quota", .version = IPTABLES_VERSION, @@ -101,7 +100,6 @@ struct xtables_match quota = { }; struct xtables_match quota6 = { - .next = NULL, .family = AF_INET6, .name = "quota", .version = IPTABLES_VERSION, diff --git a/extensions/libxt_standard.c b/extensions/libxt_standard.c index 02128a7..3838ac6 100644 --- a/extensions/libxt_standard.c +++ b/extensions/libxt_standard.c @@ -49,7 +49,6 @@ save(const void *ip, const struct xt_entry_target *target) static struct xtables_target standard = { - .next = NULL, .family = AF_INET, .name = "standard", .version = IPTABLES_VERSION, @@ -66,7 +65,6 @@ struct xtables_target standard = { static struct xtables_target standard6 = { - .next = NULL, .family = AF_INET6, .name = "standard", .version = IPTABLES_VERSION, diff --git a/extensions/libxt_tcp.c b/extensions/libxt_tcp.c index c3a53b7..da4922b 100644 --- a/extensions/libxt_tcp.c +++ b/extensions/libxt_tcp.c @@ -395,7 +395,6 @@ static void save(const void *ip, const struct xt_entry_match *match) } static struct xtables_match tcp = { - .next = NULL, .family = AF_INET, .name = "tcp", .version = IPTABLES_VERSION, @@ -411,7 +410,6 @@ static struct xtables_match tcp = { }; static struct xtables_match tcp6 = { - .next = NULL, .family = AF_INET6, .name = "tcp", .version = IPTABLES_VERSION, diff --git a/extensions/libxt_tcpmss.c b/extensions/libxt_tcpmss.c index db3dd90..4b421b2 100644 --- a/extensions/libxt_tcpmss.c +++ b/extensions/libxt_tcpmss.c @@ -133,7 +133,6 @@ save(const void *ip, const struct xt_entry_match *match) } static struct xtables_match tcpmss = { - .next = NULL, .family = AF_INET, .name = "tcpmss", .version = IPTABLES_VERSION, @@ -148,7 +147,6 @@ static struct xtables_match tcpmss = { }; static struct xtables_match tcpmss6 = { - .next = NULL, .family = AF_INET6, .name = "tcpmss", .version = IPTABLES_VERSION, diff --git a/extensions/libxt_udp.c b/extensions/libxt_udp.c index c379536..6942043 100644 --- a/extensions/libxt_udp.c +++ b/extensions/libxt_udp.c @@ -209,7 +209,6 @@ static void save(const void *ip, const struct xt_entry_match *match) static struct xtables_match udp = { - .next = NULL, .family = AF_INET, .name = "udp", .version = IPTABLES_VERSION, @@ -226,7 +225,6 @@ struct xtables_match udp = { static struct xtables_match udp6 = { - .next = NULL, .family = AF_INET6, .name = "udp", .version = IPTABLES_VERSION, -- cgit v1.2.3