summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rw-r--r--extensions/libip6t_HL.c8
-rw-r--r--extensions/libip6t_LOG.c14
-rw-r--r--extensions/libip6t_REJECT.c6
-rw-r--r--extensions/libip6t_ah.c8
-rw-r--r--extensions/libip6t_dst.c8
-rw-r--r--extensions/libip6t_frag.c14
-rw-r--r--extensions/libip6t_hbh.c16
-rw-r--r--extensions/libip6t_hl.c10
-rw-r--r--extensions/libip6t_icmp6.c6
-rw-r--r--extensions/libip6t_ipv6header.c6
-rw-r--r--extensions/libip6t_mh.c4
-rw-r--r--extensions/libip6t_owner.c12
-rw-r--r--extensions/libip6t_rt.c14
-rw-r--r--extensions/libipt_CLUSTERIP.c14
-rw-r--r--extensions/libipt_DNAT.c6
-rw-r--r--extensions/libipt_ECN.c10
-rw-r--r--extensions/libipt_LOG.c14
-rw-r--r--extensions/libipt_MASQUERADE.c6
-rw-r--r--extensions/libipt_NETMAP.c4
-rw-r--r--extensions/libipt_REDIRECT.c6
-rw-r--r--extensions/libipt_REJECT.c6
-rw-r--r--extensions/libipt_SAME.c8
-rw-r--r--extensions/libipt_SNAT.c6
-rw-r--r--extensions/libipt_TOS.c4
-rw-r--r--extensions/libipt_TTL.c8
-rw-r--r--extensions/libipt_ULOG.c10
-rw-r--r--extensions/libipt_addrtype.c6
-rw-r--r--extensions/libipt_ah.c4
-rw-r--r--extensions/libipt_conntrack.c18
-rw-r--r--extensions/libipt_ecn.c8
-rw-r--r--extensions/libipt_icmp.c6
-rw-r--r--extensions/libipt_iprange.c6
-rw-r--r--extensions/libipt_owner.c12
-rw-r--r--extensions/libipt_realm.c6
-rw-r--r--extensions/libipt_recent.c22
-rw-r--r--extensions/libipt_tos.c4
-rw-r--r--extensions/libipt_ttl.c10
-rw-r--r--extensions/libxt_CLASSIFY.c4
-rw-r--r--extensions/libxt_CONNMARK.c10
-rw-r--r--extensions/libxt_DSCP.c6
-rw-r--r--extensions/libxt_MARK.c8
-rw-r--r--extensions/libxt_NFLOG.c8
-rw-r--r--extensions/libxt_NFQUEUE.c4
-rw-r--r--extensions/libxt_TCPMSS.c6
-rw-r--r--extensions/libxt_comment.c4
-rw-r--r--extensions/libxt_connbytes.c8
-rw-r--r--extensions/libxt_connmark.c4
-rw-r--r--extensions/libxt_dccp.c14
-rw-r--r--extensions/libxt_dscp.c6
-rw-r--r--extensions/libxt_esp.c4
-rw-r--r--extensions/libxt_hashlimit.c18
-rw-r--r--extensions/libxt_helper.c4
-rw-r--r--extensions/libxt_length.c4
-rw-r--r--extensions/libxt_limit.c6
-rw-r--r--extensions/libxt_mac.c4
-rw-r--r--extensions/libxt_mark.c4
-rw-r--r--extensions/libxt_multiport.c12
-rw-r--r--extensions/libxt_physdev.c12
-rw-r--r--extensions/libxt_pkttype.c6
-rw-r--r--extensions/libxt_quota.c4
-rw-r--r--extensions/libxt_sctp.c12
-rw-r--r--extensions/libxt_state.c4
-rw-r--r--extensions/libxt_statistic.c10
-rw-r--r--extensions/libxt_string.c12
-rw-r--r--extensions/libxt_tcp.c16
-rw-r--r--extensions/libxt_tcpmss.c4
-rw-r--r--extensions/libxt_udp.c10
67 files changed, 279 insertions, 279 deletions
diff --git a/extensions/libip6t_HL.c b/extensions/libip6t_HL.c
index 1330c4e6..32fcd4a5 100644
--- a/extensions/libip6t_HL.c
+++ b/extensions/libip6t_HL.c
@@ -139,10 +139,10 @@ static void print(const void *ip,
}
static const struct option opts[] = {
- { "hl-set", 1, 0, '1' },
- { "hl-dec", 1, 0, '2' },
- { "hl-inc", 1, 0, '3' },
- { 0 }
+ { "hl-set", 1, NULL, '1' },
+ { "hl-dec", 1, NULL, '2' },
+ { "hl-inc", 1, NULL, '3' },
+ { }
};
static
diff --git a/extensions/libip6t_LOG.c b/extensions/libip6t_LOG.c
index 7106d16c..2001f76e 100644
--- a/extensions/libip6t_LOG.c
+++ b/extensions/libip6t_LOG.c
@@ -33,13 +33,13 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { .name = "log-level", .has_arg = 1, .flag = 0, .val = '!' },
- { .name = "log-prefix", .has_arg = 1, .flag = 0, .val = '#' },
- { .name = "log-tcp-sequence", .has_arg = 0, .flag = 0, .val = '1' },
- { .name = "log-tcp-options", .has_arg = 0, .flag = 0, .val = '2' },
- { .name = "log-ip-options", .has_arg = 0, .flag = 0, .val = '3' },
- { .name = "log-uid", .has_arg = 0, .flag = 0, .val = '4' },
- { .name = 0 }
+ { .name = "log-level", .has_arg = 1, .val = '!' },
+ { .name = "log-prefix", .has_arg = 1, .val = '#' },
+ { .name = "log-tcp-sequence", .has_arg = 0, .val = '1' },
+ { .name = "log-tcp-options", .has_arg = 0, .val = '2' },
+ { .name = "log-ip-options", .has_arg = 0, .val = '3' },
+ { .name = "log-uid", .has_arg = 0, .val = '4' },
+ { }
};
/* Initialize the target. */
diff --git a/extensions/libip6t_REJECT.c b/extensions/libip6t_REJECT.c
index 60a63906..3870f1b2 100644
--- a/extensions/libip6t_REJECT.c
+++ b/extensions/libip6t_REJECT.c
@@ -38,7 +38,7 @@ static const struct reject_names reject_table[] = {
};
static void
-print_reject_types()
+print_reject_types(void)
{
unsigned int i;
@@ -66,8 +66,8 @@ help(void)
}
static const struct option opts[] = {
- { "reject-with", 1, 0, '1' },
- { 0 }
+ { "reject-with", 1, NULL, '1' },
+ { }
};
/* Allocate and initialize the target. */
diff --git a/extensions/libip6t_ah.c b/extensions/libip6t_ah.c
index e96ba201..3b6126ca 100644
--- a/extensions/libip6t_ah.c
+++ b/extensions/libip6t_ah.c
@@ -21,10 +21,10 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { .name = "ahspi", .has_arg = 1, .flag = 0, .val = '1' },
- { .name = "ahlen", .has_arg = 1, .flag = 0, .val = '2' },
- { .name = "ahres", .has_arg = 0, .flag = 0, .val = '3' },
- { .name = 0 }
+ { .name = "ahspi", .has_arg = 1, .val = '1' },
+ { .name = "ahlen", .has_arg = 1, .val = '2' },
+ { .name = "ahres", .has_arg = 0, .val = '3' },
+ { }
};
static u_int32_t
diff --git a/extensions/libip6t_dst.c b/extensions/libip6t_dst.c
index 2207c3f4..ed60d5d0 100644
--- a/extensions/libip6t_dst.c
+++ b/extensions/libip6t_dst.c
@@ -32,10 +32,10 @@ IPTABLES_VERSION, IP6T_OPTS_OPTSNR);
}
static const struct option opts[] = {
- { .name = LNAME "-len", .has_arg = 1, .flag = 0, .val = '1' },
- { .name = LNAME "-opts", .has_arg = 1, .flag = 0, .val = '2' },
- { .name = LNAME "-not-strict", .has_arg = 1, .flag = 0, .val = '3' },
- { .name = 0 }
+ { .name = LNAME "-len", .has_arg = 1, .val = '1' },
+ { .name = LNAME "-opts", .has_arg = 1, .val = '2' },
+ { .name = LNAME "-not-strict", .has_arg = 1, .val = '3' },
+ { }
};
static u_int32_t
diff --git a/extensions/libip6t_frag.c b/extensions/libip6t_frag.c
index 014351ee..05fc8b27 100644
--- a/extensions/libip6t_frag.c
+++ b/extensions/libip6t_frag.c
@@ -24,13 +24,13 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { .name = "fragid", .has_arg = 1, .flag = 0, .val = '1' },
- { .name = "fraglen", .has_arg = 1, .flag = 0, .val = '2' },
- { .name = "fragres", .has_arg = 0, .flag = 0, .val = '3' },
- { .name = "fragfirst", .has_arg = 0, .flag = 0, .val = '4' },
- { .name = "fragmore", .has_arg = 0, .flag = 0, .val = '5' },
- { .name = "fraglast", .has_arg = 0, .flag = 0, .val = '6' },
- { .name = 0 }
+ { .name = "fragid", .has_arg = 1, .val = '1' },
+ { .name = "fraglen", .has_arg = 1, .val = '2' },
+ { .name = "fragres", .has_arg = 0, .val = '3' },
+ { .name = "fragfirst", .has_arg = 0, .val = '4' },
+ { .name = "fragmore", .has_arg = 0, .val = '5' },
+ { .name = "fraglast", .has_arg = 0, .val = '6' },
+ { }
};
static u_int32_t
diff --git a/extensions/libip6t_hbh.c b/extensions/libip6t_hbh.c
index 533d5106..229c5e74 100644
--- a/extensions/libip6t_hbh.c
+++ b/extensions/libip6t_hbh.c
@@ -31,17 +31,17 @@ UNAME , IPTABLES_VERSION, LNAME, LNAME, IP6T_OPTS_OPTSNR);
#if HOPBYHOP
static const struct option opts[] = {
- { "hbh-len", 1, 0, '1' },
- { "hbh-opts", 1, 0, '2' },
- { "hbh-not-strict", 1, 0, '3' },
- {0}
+ { "hbh-len", 1, NULL, '1' },
+ { "hbh-opts", 1, NULL, '2' },
+ { "hbh-not-strict", 1, NULL, '3' },
+ { }
};
#else
static const struct option opts[] = {
- { "dst-len", 1, 0, '1' },
- { "dst-opts", 1, 0, '2' },
- { "dst-not-strict", 1, 0, '3' },
- {0}
+ { "dst-len", 1, NULL, '1' },
+ { "dst-opts", 1, NULL, '2' },
+ { "dst-not-strict", 1, NULL, '3' },
+ { }
};
#endif
diff --git a/extensions/libip6t_hl.c b/extensions/libip6t_hl.c
index 20aff602..e4d2ffe4 100644
--- a/extensions/libip6t_hl.c
+++ b/extensions/libip6t_hl.c
@@ -121,11 +121,11 @@ static void save(const void *ip,
}
static const struct option opts[] = {
- { .name = "hl", .has_arg = 1, .flag = 0, .val = '2' },
- { .name = "hl-eq", .has_arg = 1, .flag = 0, .val = '2' },
- { .name = "hl-lt", .has_arg = 1, .flag = 0, .val = '3' },
- { .name = "hl-gt", .has_arg = 1, .flag = 0, .val = '4' },
- { 0 }
+ { .name = "hl", .has_arg = 1, .val = '2' },
+ { .name = "hl-eq", .has_arg = 1, .val = '2' },
+ { .name = "hl-lt", .has_arg = 1, .val = '3' },
+ { .name = "hl-gt", .has_arg = 1, .val = '4' },
+ { }
};
static
diff --git a/extensions/libip6t_icmp6.c b/extensions/libip6t_icmp6.c
index 5c06c04b..02108497 100644
--- a/extensions/libip6t_icmp6.c
+++ b/extensions/libip6t_icmp6.c
@@ -53,7 +53,7 @@ static const struct icmpv6_names icmpv6_codes[] = {
};
static void
-print_icmpv6types()
+print_icmpv6types(void)
{
unsigned int i;
printf("Valid ICMPv6 Types:");
@@ -86,8 +86,8 @@ help(void)
}
static const struct option opts[] = {
- { "icmpv6-type", 1, 0, '1' },
- {0}
+ { "icmpv6-type", 1, NULL, '1' },
+ { }
};
static void
diff --git a/extensions/libip6t_ipv6header.c b/extensions/libip6t_ipv6header.c
index 3d21f450..04749e6d 100644
--- a/extensions/libip6t_ipv6header.c
+++ b/extensions/libip6t_ipv6header.c
@@ -149,9 +149,9 @@ help(void)
}
static const struct option opts[] = {
- { "header", 1, 0, '1' },
- { "soft", 0, 0, '2' },
- { 0 }
+ { "header", 1, NULL, '1' },
+ { "soft", 0, NULL, '2' },
+ { }
};
static void
diff --git a/extensions/libip6t_mh.c b/extensions/libip6t_mh.c
index 90d12046..99809c0e 100644
--- a/extensions/libip6t_mh.c
+++ b/extensions/libip6t_mh.c
@@ -226,8 +226,8 @@ static void save(const void *ip, const struct xt_entry_match *match)
}
static const struct option opts[] = {
- { "mh-type", 1, 0, '1' },
- {0}
+ { "mh-type", 1, NULL, '1' },
+ { }
};
static struct ip6tables_match mh = {
diff --git a/extensions/libip6t_owner.c b/extensions/libip6t_owner.c
index 1f1c9055..06804b97 100644
--- a/extensions/libip6t_owner.c
+++ b/extensions/libip6t_owner.c
@@ -37,14 +37,14 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { "uid-owner", 1, 0, '1' },
- { "gid-owner", 1, 0, '2' },
- { "pid-owner", 1, 0, '3' },
- { "sid-owner", 1, 0, '4' },
+ { "uid-owner", 1, NULL, '1' },
+ { "gid-owner", 1, NULL, '2' },
+ { "pid-owner", 1, NULL, '3' },
+ { "sid-owner", 1, NULL, '4' },
#ifdef IP6T_OWNER_COMM
- { "cmd-owner", 1, 0, '5' },
+ { "cmd-owner", 1, NULL, '5' },
#endif
- {0}
+ { }
};
/* Function which parses command options; returns true if it
diff --git a/extensions/libip6t_rt.c b/extensions/libip6t_rt.c
index a21fd688..efcbf5de 100644
--- a/extensions/libip6t_rt.c
+++ b/extensions/libip6t_rt.c
@@ -30,13 +30,13 @@ IPTABLES_VERSION, IP6T_RT_HOPS);
}
static const struct option opts[] = {
- { "rt-type", 1, 0, '1' },
- { "rt-segsleft", 1, 0, '2' },
- { "rt-len", 1, 0, '3' },
- { "rt-0-res", 0, 0, '4' },
- { "rt-0-addrs", 1, 0, '5' },
- { "rt-0-not-strict", 0, 0, '6' },
- {0}
+ { "rt-type", 1, NULL, '1' },
+ { "rt-segsleft", 1, NULL, '2' },
+ { "rt-len", 1, NULL, '3' },
+ { "rt-0-res", 0, NULL, '4' },
+ { "rt-0-addrs", 1, NULL, '5' },
+ { "rt-0-not-strict", 0, NULL, '6' },
+ { }
};
static u_int32_t
diff --git a/extensions/libipt_CLUSTERIP.c b/extensions/libipt_CLUSTERIP.c
index afc78233..384dbdf0 100644
--- a/extensions/libipt_CLUSTERIP.c
+++ b/extensions/libipt_CLUSTERIP.c
@@ -45,13 +45,13 @@ IPTABLES_VERSION);
#define PARAM_HASHINIT 0x0020
static const struct option opts[] = {
- { "new", 0, 0, '1' },
- { "hashmode", 1, 0, '2' },
- { "clustermac", 1, 0, '3' },
- { "total-nodes", 1, 0, '4' },
- { "local-node", 1, 0, '5' },
- { "hash-init", 1, 0, '6' },
- { 0 }
+ { "new", 0, NULL, '1' },
+ { "hashmode", 1, NULL, '2' },
+ { "clustermac", 1, NULL, '3' },
+ { "total-nodes", 1, NULL, '4' },
+ { "local-node", 1, NULL, '5' },
+ { "hash-init", 1, NULL, '6' },
+ { }
};
static void
diff --git a/extensions/libipt_DNAT.c b/extensions/libipt_DNAT.c
index 9f48e9c5..98fb9660 100644
--- a/extensions/libipt_DNAT.c
+++ b/extensions/libipt_DNAT.c
@@ -33,9 +33,9 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { "to-destination", 1, 0, '1' },
- { "random", 0, 0, '2' },
- { 0 }
+ { "to-destination", 1, NULL, '1' },
+ { "random", 0, NULL, '2' },
+ { }
};
static struct ipt_natinfo *
diff --git a/extensions/libipt_ECN.c b/extensions/libipt_ECN.c
index 6cba3619..83123f3a 100644
--- a/extensions/libipt_ECN.c
+++ b/extensions/libipt_ECN.c
@@ -38,11 +38,11 @@ static void help(void)
static const struct option opts[] = {
- { "ecn-tcp-remove", 0, 0, 'F' },
- { "ecn-tcp-cwr", 1, 0, 'G' },
- { "ecn-tcp-ece", 1, 0, 'H' },
- { "ecn-ip-ect", 1, 0, '9' },
- { 0 }
+ { "ecn-tcp-remove", 0, NULL, 'F' },
+ { "ecn-tcp-cwr", 1, NULL, 'G' },
+ { "ecn-tcp-ece", 1, NULL, 'H' },
+ { "ecn-ip-ect", 1, NULL, '9' },
+ { }
};
static int
diff --git a/extensions/libipt_LOG.c b/extensions/libipt_LOG.c
index c0d81777..e983904e 100644
--- a/extensions/libipt_LOG.c
+++ b/extensions/libipt_LOG.c
@@ -33,13 +33,13 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { .name = "log-level", .has_arg = 1, .flag = 0, .val = '!' },
- { .name = "log-prefix", .has_arg = 1, .flag = 0, .val = '#' },
- { .name = "log-tcp-sequence", .has_arg = 0, .flag = 0, .val = '1' },
- { .name = "log-tcp-options", .has_arg = 0, .flag = 0, .val = '2' },
- { .name = "log-ip-options", .has_arg = 0, .flag = 0, .val = '3' },
- { .name = "log-uid", .has_arg = 0, .flag = 0, .val = '4' },
- { .name = 0 }
+ { .name = "log-level", .has_arg = 1, .val = '!' },
+ { .name = "log-prefix", .has_arg = 1, .val = '#' },
+ { .name = "log-tcp-sequence", .has_arg = 0, .val = '1' },
+ { .name = "log-tcp-options", .has_arg = 0, .val = '2' },
+ { .name = "log-ip-options", .has_arg = 0, .val = '3' },
+ { .name = "log-uid", .has_arg = 0, .val = '4' },
+ { }
};
/* Initialize the target. */
diff --git a/extensions/libipt_MASQUERADE.c b/extensions/libipt_MASQUERADE.c
index 36f2f241..131c1dcd 100644
--- a/extensions/libipt_MASQUERADE.c
+++ b/extensions/libipt_MASQUERADE.c
@@ -24,9 +24,9 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { "to-ports", 1, 0, '1' },
- { "random", 0, 0, '2' },
- { 0 }
+ { "to-ports", 1, NULL, '1' },
+ { "random", 0, NULL, '2' },
+ { }
};
/* Initialize the target. */
diff --git a/extensions/libipt_NETMAP.c b/extensions/libipt_NETMAP.c
index 06115ce8..62f69c58 100644
--- a/extensions/libipt_NETMAP.c
+++ b/extensions/libipt_NETMAP.c
@@ -14,8 +14,8 @@
#define MODULENAME "NETMAP"
static const struct option opts[] = {
- { "to", 1, 0, '1' },
- { 0 }
+ { "to", 1, NULL, '1' },
+ { }
};
/* Function which prints out usage message. */
diff --git a/extensions/libipt_REDIRECT.c b/extensions/libipt_REDIRECT.c
index 3b6fe127..794a208e 100644
--- a/extensions/libipt_REDIRECT.c
+++ b/extensions/libipt_REDIRECT.c
@@ -23,9 +23,9 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { "to-ports", 1, 0, '1' },
- { "random", 1, 0, '2' },
- { 0 }
+ { "to-ports", 1, NULL, '1' },
+ { "random", 1, NULL, '2' },
+ { }
};
/* Initialize the target. */
diff --git a/extensions/libipt_REJECT.c b/extensions/libipt_REJECT.c
index 4af37136..90ec163f 100644
--- a/extensions/libipt_REJECT.c
+++ b/extensions/libipt_REJECT.c
@@ -51,7 +51,7 @@ static const struct reject_names reject_table[] = {
};
static void
-print_reject_types()
+print_reject_types(void)
{
unsigned int i;
@@ -81,8 +81,8 @@ help(void)
}
static const struct option opts[] = {
- { "reject-with", 1, 0, '1' },
- { 0 }
+ { "reject-with", 1, NULL, '1' },
+ { }
};
/* Allocate and initialize the target. */
diff --git a/extensions/libipt_SAME.c b/extensions/libipt_SAME.c
index acfbdef1..3dfb7021 100644
--- a/extensions/libipt_SAME.c
+++ b/extensions/libipt_SAME.c
@@ -30,10 +30,10 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { "to", 1, 0, '1' },
- { "nodst", 0, 0, '2'},
- { "random", 0, 0, '3' },
- { 0 }
+ { "to", 1, NULL, '1' },
+ { "nodst", 0, NULL, '2'},
+ { "random", 0, NULL, '3' },
+ { }
};
/* Initialize the target. */
diff --git a/extensions/libipt_SNAT.c b/extensions/libipt_SNAT.c
index 9460612d..3fae7847 100644
--- a/extensions/libipt_SNAT.c
+++ b/extensions/libipt_SNAT.c
@@ -33,9 +33,9 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { "to-source", 1, 0, '1' },
- { "random", 0, 0, '2' },
- { 0 }
+ { "to-source", 1, NULL, '1' },
+ { "random", 0, NULL, '2' },
+ { }
};
static struct ipt_natinfo *
diff --git a/extensions/libipt_TOS.c b/extensions/libipt_TOS.c
index ba4c5652..f54b08f3 100644
--- a/extensions/libipt_TOS.c
+++ b/extensions/libipt_TOS.c
@@ -48,8 +48,8 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { "set-tos", 1, 0, '1' },
- { 0 }
+ { "set-tos", 1, NULL, '1' },
+ { }
};
/* Initialize the target. */
diff --git a/extensions/libipt_TTL.c b/extensions/libipt_TTL.c
index ed6b0fef..644c7c46 100644
--- a/extensions/libipt_TTL.c
+++ b/extensions/libipt_TTL.c
@@ -139,10 +139,10 @@ static void print(const void *ip,
}
static const struct option opts[] = {
- { "ttl-set", 1, 0, '1' },
- { "ttl-dec", 1, 0, '2' },
- { "ttl-inc", 1, 0, '3' },
- { 0 }
+ { "ttl-set", 1, NULL, '1' },
+ { "ttl-dec", 1, NULL, '2' },
+ { "ttl-inc", 1, NULL, '3' },
+ { }
};
static struct iptables_target TTL = {
diff --git a/extensions/libipt_ULOG.c b/extensions/libipt_ULOG.c
index 84816a0d..aa98f6ea 100644
--- a/extensions/libipt_ULOG.c
+++ b/extensions/libipt_ULOG.c
@@ -45,11 +45,11 @@ static void help(void)
}
static const struct option opts[] = {
- {"ulog-nlgroup", 1, 0, '!'},
- {"ulog-prefix", 1, 0, '#'},
- {"ulog-cprange", 1, 0, 'A'},
- {"ulog-qthreshold", 1, 0, 'B'},
- {0}
+ {"ulog-nlgroup", 1, NULL, '!'},
+ {"ulog-prefix", 1, NULL, '#'},
+ {"ulog-cprange", 1, NULL, 'A'},
+ {"ulog-qthreshold", 1, NULL, 'B'},
+ { }
};
/* Initialize the target. */
diff --git a/extensions/libipt_addrtype.c b/extensions/libipt_addrtype.c
index c3fd3c8d..2036ed9b 100644
--- a/extensions/libipt_addrtype.c
+++ b/extensions/libipt_addrtype.c
@@ -180,9 +180,9 @@ static void save(const void *ip,
}
static const struct option opts[] = {
- { "src-type", 1, 0, '1' },
- { "dst-type", 1, 0, '2' },
- { 0 }
+ { "src-type", 1, NULL, '1' },
+ { "dst-type", 1, NULL, '2' },
+ { }
};
static
diff --git a/extensions/libipt_ah.c b/extensions/libipt_ah.c
index daf85bd5..4f0f23c1 100644
--- a/extensions/libipt_ah.c
+++ b/extensions/libipt_ah.c
@@ -20,8 +20,8 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { "ahspi", 1, 0, '1' },
- {0}
+ { "ahspi", 1, NULL, '1' },
+ { }
};
static u_int32_t
diff --git a/extensions/libipt_conntrack.c b/extensions/libipt_conntrack.c
index 8f74257a..6ee8353c 100644
--- a/extensions/libipt_conntrack.c
+++ b/extensions/libipt_conntrack.c
@@ -44,15 +44,15 @@ help(void)
static const struct option opts[] = {
- { "ctstate", 1, 0, '1' },
- { "ctproto", 1, 0, '2' },
- { "ctorigsrc", 1, 0, '3' },
- { "ctorigdst", 1, 0, '4' },
- { "ctreplsrc", 1, 0, '5' },
- { "ctrepldst", 1, 0, '6' },
- { "ctstatus", 1, 0, '7' },
- { "ctexpire", 1, 0, '8' },
- {0}
+ { "ctstate", 1, NULL, '1' },
+ { "ctproto", 1, NULL, '2' },
+ { "ctorigsrc", 1, NULL, '3' },
+ { "ctorigdst", 1, NULL, '4' },
+ { "ctreplsrc", 1, NULL, '5' },
+ { "ctrepldst", 1, NULL, '6' },
+ { "ctstatus", 1, NULL, '7' },
+ { "ctexpire", 1, NULL, '8' },
+ { }
};
static int
diff --git a/extensions/libipt_ecn.c b/extensions/libipt_ecn.c
index d443e536..52bdf66f 100644
--- a/extensions/libipt_ecn.c
+++ b/extensions/libipt_ecn.c
@@ -27,10 +27,10 @@ static void help(void)
}
static const struct option opts[] = {
- { .name = "ecn-tcp-cwr", .has_arg = 0, .flag = 0, .val = 'F' },
- { .name = "ecn-tcp-ece", .has_arg = 0, .flag = 0, .val = 'G' },
- { .name = "ecn-ip-ect", .has_arg = 1, .flag = 0, .val = 'H' },
- { .name = 0 }
+ { .name = "ecn-tcp-cwr", .has_arg = 0, .val = 'F' },
+ { .name = "ecn-tcp-ece", .has_arg = 0, .val = 'G' },
+ { .name = "ecn-ip-ect", .has_arg = 1, .val = 'H' },
+ { }
};
static int
diff --git a/extensions/libipt_icmp.c b/extensions/libipt_icmp.c
index 9ee1baaa..5be4f21e 100644
--- a/extensions/libipt_icmp.c
+++ b/extensions/libipt_icmp.c
@@ -77,7 +77,7 @@ static const struct icmp_names icmp_codes[] = {
};
static void
-print_icmptypes()
+print_icmptypes(void)
{
unsigned int i;
printf("Valid ICMP Types:");
@@ -110,8 +110,8 @@ help(void)
}
static const struct option opts[] = {
- { "icmp-type", 1, 0, '1' },
- {0}
+ { "icmp-type", 1, NULL, '1' },
+ { }
};
static void
diff --git a/extensions/libipt_iprange.c b/extensions/libipt_iprange.c
index 3c2a0143..46e78259 100644
--- a/extensions/libipt_iprange.c
+++ b/extensions/libipt_iprange.c
@@ -21,9 +21,9 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { "src-range", 1, 0, '1' },
- { "dst-range", 1, 0, '2' },
- {0}
+ { "src-range", 1, NULL, '1' },
+ { "dst-range", 1, NULL, '2' },
+ { }
};
static void
diff --git a/extensions/libipt_owner.c b/extensions/libipt_owner.c
index 2c910413..e11bfb1b 100644
--- a/extensions/libipt_owner.c
+++ b/extensions/libipt_owner.c
@@ -39,14 +39,14 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { "uid-owner", 1, 0, '1' },
- { "gid-owner", 1, 0, '2' },
- { "pid-owner", 1, 0, '3' },
- { "sid-owner", 1, 0, '4' },
+ { "uid-owner", 1, NULL, '1' },
+ { "gid-owner", 1, NULL, '2' },
+ { "pid-owner", 1, NULL, '3' },
+ { "sid-owner", 1, NULL, '4' },
#ifdef IPT_OWNER_COMM
- { "cmd-owner", 1, 0, '5' },
+ { "cmd-owner", 1, NULL, '5' },
#endif
- {0}
+ { }
};
/* Function which parses command options; returns true if it
diff --git a/extensions/libipt_realm.c b/extensions/libipt_realm.c
index 86f71259..87302433 100644
--- a/extensions/libipt_realm.c
+++ b/extensions/libipt_realm.c
@@ -26,8 +26,8 @@ help(void)
}
static const struct option opts[] = {
- { "realm", 1, 0, '1' },
- {0}
+ { "realm", 1, NULL, '1' },
+ { }
};
struct realmname {
@@ -43,7 +43,7 @@ static struct realmname *realms = NULL;
static int rdberr = 0;
-void load_realms()
+static void load_realms(void)
{
const char* rfnm = "/etc/iproute2/rt_realms";
char buf[512];
diff --git a/extensions/libipt_recent.c b/extensions/libipt_recent.c
index cad01202..002fecb1 100644
--- a/extensions/libipt_recent.c
+++ b/extensions/libipt_recent.c
@@ -23,17 +23,17 @@
/* Options for this module */
static const struct option opts[] = {
- { .name = "set", .has_arg = 0, .flag = 0, .val = 201 },
- { .name = "rcheck", .has_arg = 0, .flag = 0, .val = 202 },
- { .name = "update", .has_arg = 0, .flag = 0, .val = 203 },
- { .name = "seconds", .has_arg = 1, .flag = 0, .val = 204 },
- { .name = "hitcount", .has_arg = 1, .flag = 0, .val = 205 },
- { .name = "remove", .has_arg = 0, .flag = 0, .val = 206 },
- { .name = "rttl", .has_arg = 0, .flag = 0, .val = 207 },
- { .name = "name", .has_arg = 1, .flag = 0, .val = 208 },
- { .name = "rsource", .has_arg = 0, .flag = 0, .val = 209 },
- { .name = "rdest", .has_arg = 0, .flag = 0, .val = 210 },
- { .name = 0, .has_arg = 0, .flag = 0, .val = 0 }
+ { .name = "set", .has_arg = 0, .val = 201 },
+ { .name = "rcheck", .has_arg = 0, .val = 202 },
+ { .name = "update", .has_arg = 0, .val = 203 },
+ { .name = "seconds", .has_arg = 1, .val = 204 },
+ { .name = "hitcount", .has_arg = 1, .val = 205 },
+ { .name = "remove", .has_arg = 0, .val = 206 },
+ { .name = "rttl", .has_arg = 0, .val = 207 },
+ { .name = "name", .has_arg = 1, .val = 208 },
+ { .name = "rsource", .has_arg = 0, .val = 209 },
+ { .name = "rdest", .has_arg = 0, .val = 210 },
+ { }
};
/* Function which prints out usage message. */
diff --git a/extensions/libipt_tos.c b/extensions/libipt_tos.c
index 66489a9f..ebdd0c1c 100644
--- a/extensions/libipt_tos.c
+++ b/extensions/libipt_tos.c
@@ -43,8 +43,8 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { "tos", 1, 0, '1' },
- {0}
+ { "tos", 1, NULL, '1' },
+ { }
};
static void
diff --git a/extensions/libipt_ttl.c b/extensions/libipt_ttl.c
index 4b241f51..b6edbc1a 100644
--- a/extensions/libipt_ttl.c
+++ b/extensions/libipt_ttl.c
@@ -144,11 +144,11 @@ static void save(const void *ip,
}
static const struct option opts[] = {
- { "ttl", 1, 0, '2' },
- { "ttl-eq", 1, 0, '2'},
- { "ttl-lt", 1, 0, '3'},
- { "ttl-gt", 1, 0, '4'},
- { 0 }
+ { "ttl", 1, NULL, '2' },
+ { "ttl-eq", 1, NULL, '2'},
+ { "ttl-lt", 1, NULL, '3'},
+ { "ttl-gt", 1, NULL, '4'},
+ { }
};
static struct iptables_match ttl = {
diff --git a/extensions/libxt_CLASSIFY.c b/extensions/libxt_CLASSIFY.c
index 6d637c77..08ad8b2b 100644
--- a/extensions/libxt_CLASSIFY.c
+++ b/extensions/libxt_CLASSIFY.c
@@ -22,8 +22,8 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { "set-class", 1, 0, '1' },
- { 0 }
+ { "set-class", 1, NULL, '1' },
+ { }
};
/* Initialize the target. */
diff --git a/extensions/libxt_CONNMARK.c b/extensions/libxt_CONNMARK.c
index 36803230..4bb068e4 100644
--- a/extensions/libxt_CONNMARK.c
+++ b/extensions/libxt_CONNMARK.c
@@ -49,11 +49,11 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { "set-mark", 1, 0, '1' },
- { "save-mark", 0, 0, '2' },
- { "restore-mark", 0, 0, '3' },
- { "mask", 1, 0, '4' },
- { 0 }
+ { "set-mark", 1, NULL, '1' },
+ { "save-mark", 0, NULL, '2' },
+ { "restore-mark", 0, NULL, '3' },
+ { "mask", 1, NULL, '4' },
+ { }
};
/* Initialize the target. */
diff --git a/extensions/libxt_DSCP.c b/extensions/libxt_DSCP.c
index b42d99dc..44e03cef 100644
--- a/extensions/libxt_DSCP.c
+++ b/extensions/libxt_DSCP.c
@@ -43,9 +43,9 @@ static void help(void)
}
static const struct option opts[] = {
- { "set-dscp", 1, 0, 'F' },
- { "set-dscp-class", 1, 0, 'G' },
- { 0 }
+ { "set-dscp", 1, NULL, 'F' },
+ { "set-dscp-class", 1, NULL, 'G' },
+ { }
};
static void
diff --git a/extensions/libxt_MARK.c b/extensions/libxt_MARK.c
index 3ab767d6..423e0f2a 100644
--- a/extensions/libxt_MARK.c
+++ b/extensions/libxt_MARK.c
@@ -22,10 +22,10 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { "set-mark", 1, 0, '1' },
- { "and-mark", 1, 0, '2' },
- { "or-mark", 1, 0, '3' },
- { 0 }
+ { "set-mark", 1, NULL, '1' },
+ { "and-mark", 1, NULL, '2' },
+ { "or-mark", 1, NULL, '3' },
+ { }
};
/* Initialize the target. */
diff --git a/extensions/libxt_NFLOG.c b/extensions/libxt_NFLOG.c
index b42f8011..0bbb8ce3 100644
--- a/extensions/libxt_NFLOG.c
+++ b/extensions/libxt_NFLOG.c
@@ -15,10 +15,10 @@ enum {
};
static const struct option opts[] = {
- { "nflog-group", 1, 0, NFLOG_GROUP },
- { "nflog-prefix", 1, 0, NFLOG_PREFIX },
- { "nflog-range", 1, 0, NFLOG_RANGE },
- { "nflog-threshold", 1, 0, NFLOG_THRESHOLD },
+ { "nflog-group", 1, NULL, NFLOG_GROUP },
+ { "nflog-prefix", 1, NULL, NFLOG_PREFIX },
+ { "nflog-range", 1, NULL, NFLOG_RANGE },
+ { "nflog-threshold", 1, NULL, NFLOG_THRESHOLD },
{NULL},
};
diff --git a/extensions/libxt_NFQUEUE.c b/extensions/libxt_NFQUEUE.c
index 10aa152e..293ef1f0 100644
--- a/extensions/libxt_NFQUEUE.c
+++ b/extensions/libxt_NFQUEUE.c
@@ -28,8 +28,8 @@ static void help(void)
}
static const struct option opts[] = {
- { "queue-num", 1, 0, 'F' },
- { 0 }
+ { "queue-num", 1, NULL, 'F' },
+ { }
};
static void
diff --git a/extensions/libxt_TCPMSS.c b/extensions/libxt_TCPMSS.c
index a779b932..304cf718 100644
--- a/extensions/libxt_TCPMSS.c
+++ b/extensions/libxt_TCPMSS.c
@@ -37,9 +37,9 @@ static void help6(void)
}
static const struct option opts[] = {
- { "set-mss", 1, 0, '1' },
- { "clamp-mss-to-pmtu", 0, 0, '2' },
- { 0 }
+ { "set-mss", 1, NULL, '1' },
+ { "clamp-mss-to-pmtu", 0, NULL, '2' },
+ { }
};
/* Initialize the target. */
diff --git a/extensions/libxt_comment.c b/extensions/libxt_comment.c
index 1a82f00b..c176173b 100644
--- a/extensions/libxt_comment.c
+++ b/extensions/libxt_comment.c
@@ -25,8 +25,8 @@ help(void)
}
static const struct option opts[] = {
- { "comment", 1, 0, '1' },
- {0}
+ { "comment", 1, NULL, '1' },
+ { }
};
static void
diff --git a/extensions/libxt_connbytes.c b/extensions/libxt_connbytes.c
index 7a99f425..8efde372 100644
--- a/extensions/libxt_connbytes.c
+++ b/extensions/libxt_connbytes.c
@@ -21,10 +21,10 @@ help(void)
}
static const struct option opts[] = {
- { "connbytes", 1, 0, '1' },
- { "connbytes-dir", 1, 0, '2' },
- { "connbytes-mode", 1, 0, '3' },
- {0}
+ { "connbytes", 1, NULL, '1' },
+ { "connbytes-dir", 1, NULL, '2' },
+ { "connbytes-mode", 1, NULL, '3' },
+ { }
};
static void
diff --git a/extensions/libxt_connmark.c b/extensions/libxt_connmark.c
index 64f6c752..e9d47bca 100644
--- a/extensions/libxt_connmark.c
+++ b/extensions/libxt_connmark.c
@@ -40,8 +40,8 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { "mark", 1, 0, '1' },
- {0}
+ { "mark", 1, NULL, '1' },
+ { }
};
/* Function which parses command options; returns true if it
diff --git a/extensions/libxt_dccp.c b/extensions/libxt_dccp.c
index 02b84f1f..dcb199c4 100644
--- a/extensions/libxt_dccp.c
+++ b/extensions/libxt_dccp.c
@@ -46,13 +46,13 @@ static void help(void)
}
static const struct option opts[] = {
- { .name = "source-port", .has_arg = 1, .flag = 0, .val = '1' },
- { .name = "sport", .has_arg = 1, .flag = 0, .val = '1' },
- { .name = "destination-port", .has_arg = 1, .flag = 0, .val = '2' },
- { .name = "dport", .has_arg = 1, .flag = 0, .val = '2' },
- { .name = "dccp-types", .has_arg = 1, .flag = 0, .val = '3' },
- { .name = "dccp-option", .has_arg = 1, .flag = 0, .val = '4' },
- { .name = 0 }
+ { .name = "source-port", .has_arg = 1, .val = '1' },
+ { .name = "sport", .has_arg = 1, .val = '1' },
+ { .name = "destination-port", .has_arg = 1, .val = '2' },
+ { .name = "dport", .has_arg = 1, .val = '2' },
+ { .name = "dccp-types", .has_arg = 1, .val = '3' },
+ { .name = "dccp-option", .has_arg = 1, .val = '4' },
+ { }
};
static void
diff --git a/extensions/libxt_dscp.c b/extensions/libxt_dscp.c
index 7e0c3e4a..e0fadd76 100644
--- a/extensions/libxt_dscp.c
+++ b/extensions/libxt_dscp.c
@@ -40,9 +40,9 @@ static void help(void)
}
static const struct option opts[] = {
- { "dscp", 1, 0, 'F' },
- { "dscp-class", 1, 0, 'G' },
- { 0 }
+ { "dscp", 1, NULL, 'F' },
+ { "dscp-class", 1, NULL, 'G' },
+ { }
};
static void
diff --git a/extensions/libxt_esp.c b/extensions/libxt_esp.c
index 8811d664..adeeec79 100644
--- a/extensions/libxt_esp.c
+++ b/extensions/libxt_esp.c
@@ -20,8 +20,8 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { "espspi", 1, 0, '1' },
- {0}
+ { "espspi", 1, NULL, '1' },
+ { }
};
static u_int32_t
diff --git a/extensions/libxt_hashlimit.c b/extensions/libxt_hashlimit.c
index e845a9cd..fdd8cebe 100644
--- a/extensions/libxt_hashlimit.c
+++ b/extensions/libxt_hashlimit.c
@@ -47,15 +47,15 @@ help(void)
}
static const struct option opts[] = {
- { "hashlimit", 1, 0, '%' },
- { "hashlimit-burst", 1, 0, '$' },
- { "hashlimit-htable-size", 1, 0, '&' },
- { "hashlimit-htable-max", 1, 0, '*' },
- { "hashlimit-htable-gcinterval", 1, 0, '(' },
- { "hashlimit-htable-expire", 1, 0, ')' },
- { "hashlimit-mode", 1, 0, '_' },
- { "hashlimit-name", 1, 0, '"' },
- { 0 }
+ { "hashlimit", 1, NULL, '%' },
+ { "hashlimit-burst", 1, NULL, '$' },
+ { "hashlimit-htable-size", 1, NULL, '&' },
+ { "hashlimit-htable-max", 1, NULL, '*' },
+ { "hashlimit-htable-gcinterval", 1, NULL, '(' },
+ { "hashlimit-htable-expire", 1, NULL, ')' },
+ { "hashlimit-mode", 1, NULL, '_' },
+ { "hashlimit-name", 1, NULL, '"' },
+ { }
};
static
diff --git a/extensions/libxt_helper.c b/extensions/libxt_helper.c
index bce0f286..9c24494f 100644
--- a/extensions/libxt_helper.c
+++ b/extensions/libxt_helper.c
@@ -20,8 +20,8 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { "helper", 1, 0, '1' },
- {0}
+ { "helper", 1, NULL, '1' },
+ { }
};
/* Function which parses command options; returns true if it
diff --git a/extensions/libxt_length.c b/extensions/libxt_length.c
index 79e6f41a..5353d2cd 100644
--- a/extensions/libxt_length.c
+++ b/extensions/libxt_length.c
@@ -21,8 +21,8 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { "length", 1, 0, '1' },
- {0}
+ { "length", 1, NULL, '1' },
+ { }
};
static u_int16_t
diff --git a/extensions/libxt_limit.c b/extensions/libxt_limit.c
index c1db72a5..e9c89c3a 100644
--- a/extensions/libxt_limit.c
+++ b/extensions/libxt_limit.c
@@ -31,9 +31,9 @@ help(void)
}
static const struct option opts[] = {
- { "limit", 1, 0, '%' },
- { "limit-burst", 1, 0, '$' },
- { 0 }
+ { "limit", 1, NULL, '%' },
+ { "limit-burst", 1, NULL, '$' },
+ { }
};
static
diff --git a/extensions/libxt_mac.c b/extensions/libxt_mac.c
index a9874cdf..69fbc56f 100644
--- a/extensions/libxt_mac.c
+++ b/extensions/libxt_mac.c
@@ -24,8 +24,8 @@ help(void)
}
static const struct option opts[] = {
- { "mac-source", 1, 0, '1' },
- {0}
+ { "mac-source", 1, NULL, '1' },
+ { }
};
static void
diff --git a/extensions/libxt_mark.c b/extensions/libxt_mark.c
index 7edaf2e6..84566217 100644
--- a/extensions/libxt_mark.c
+++ b/extensions/libxt_mark.c
@@ -21,8 +21,8 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { "mark", 1, 0, '1' },
- {0}
+ { "mark", 1, NULL, '1' },
+ { }
};
/* Function which parses command options; returns true if it
diff --git a/extensions/libxt_multiport.c b/extensions/libxt_multiport.c
index 25aa6284..d47c3724 100644
--- a/extensions/libxt_multiport.c
+++ b/extensions/libxt_multiport.c
@@ -46,12 +46,12 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { "source-ports", 1, 0, '1' },
- { "sports", 1, 0, '1' }, /* synonym */
- { "destination-ports", 1, 0, '2' },
- { "dports", 1, 0, '2' }, /* synonym */
- { "ports", 1, 0, '3' },
- {0}
+ { "source-ports", 1, NULL, '1' },
+ { "sports", 1, NULL, '1' }, /* synonym */
+ { "destination-ports", 1, NULL, '2' },
+ { "dports", 1, NULL, '2' }, /* synonym */
+ { "ports", 1, NULL, '3' },
+ { }
};
static char *
diff --git a/extensions/libxt_physdev.c b/extensions/libxt_physdev.c
index ed58501b..2be6bd18 100644
--- a/extensions/libxt_physdev.c
+++ b/extensions/libxt_physdev.c
@@ -26,12 +26,12 @@ help(void)
}
static const struct option opts[] = {
- { "physdev-in", 1, 0, '1' },
- { "physdev-out", 1, 0, '2' },
- { "physdev-is-in", 0, 0, '3' },
- { "physdev-is-out", 0, 0, '4' },
- { "physdev-is-bridged", 0, 0, '5' },
- {0}
+ { "physdev-in", 1, NULL, '1' },
+ { "physdev-out", 1, NULL, '2' },
+ { "physdev-is-in", 0, NULL, '3' },
+ { "physdev-is-out", 0, NULL, '4' },
+ { "physdev-is-bridged", 0, NULL, '5' },
+ { }
};
static void
diff --git a/extensions/libxt_pkttype.c b/extensions/libxt_pkttype.c
index 85e43eaf..cbb78be4 100644
--- a/extensions/libxt_pkttype.c
+++ b/extensions/libxt_pkttype.c
@@ -41,7 +41,7 @@ static const struct pkttypes supported_types[] = {
{"host", PACKET_HOST, 0, NULL}
};
-static void print_types()
+static void print_types(void)
{
unsigned int i;
@@ -65,8 +65,8 @@ static void help(void)
}
static const struct option opts[] = {
- {"pkt-type", 1, 0, '1'},
- {0}
+ {"pkt-type", 1, NULL, '1'},
+ { }
};
static void parse_pkttype(const char *pkttype, struct xt_pkttype_info *info)
diff --git a/extensions/libxt_quota.c b/extensions/libxt_quota.c
index 1d3ef634..12a3371e 100644
--- a/extensions/libxt_quota.c
+++ b/extensions/libxt_quota.c
@@ -12,8 +12,8 @@
#include <linux/netfilter/xt_quota.h>
static const struct option opts[] = {
- {"quota", 1, 0, '1'},
- {0}
+ {"quota", 1, NULL, '1'},
+ { }
};
/* print usage */
diff --git a/extensions/libxt_sctp.c b/extensions/libxt_sctp.c
index 39553bf5..c816b99b 100644
--- a/extensions/libxt_sctp.c
+++ b/extensions/libxt_sctp.c
@@ -69,12 +69,12 @@ static void help(void)
}
static const struct option opts[] = {
- { .name = "source-port", .has_arg = 1, .flag = 0, .val = '1' },
- { .name = "sport", .has_arg = 1, .flag = 0, .val = '1' },
- { .name = "destination-port", .has_arg = 1, .flag = 0, .val = '2' },
- { .name = "dport", .has_arg = 1, .flag = 0, .val = '2' },
- { .name = "chunk-types", .has_arg = 1, .flag = 0, .val = '3' },
- { .name = 0 }
+ { .name = "source-port", .has_arg = 1, .val = '1' },
+ { .name = "sport", .has_arg = 1, .val = '1' },
+ { .name = "destination-port", .has_arg = 1, .val = '2' },
+ { .name = "dport", .has_arg = 1, .val = '2' },
+ { .name = "chunk-types", .has_arg = 1, .val = '3' },
+ { }
};
static void
diff --git a/extensions/libxt_state.c b/extensions/libxt_state.c
index 8d193faa..067b4080 100644
--- a/extensions/libxt_state.c
+++ b/extensions/libxt_state.c
@@ -24,8 +24,8 @@ help(void)
}
static const struct option opts[] = {
- { "state", 1, 0, '1' },
- {0}
+ { "state", 1, NULL, '1' },
+ { }
};
static int
diff --git a/extensions/libxt_statistic.c b/extensions/libxt_statistic.c
index d2210faf..dc054026 100644
--- a/extensions/libxt_statistic.c
+++ b/extensions/libxt_statistic.c
@@ -24,11 +24,11 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { "mode", 1, 0, '1' },
- { "probability", 1, 0, '2' },
- { "every", 1, 0, '3' },
- { "packet", 1, 0, '4' },
- { 0 }
+ { "mode", 1, NULL, '1' },
+ { "probability", 1, NULL, '2' },
+ { "every", 1, NULL, '3' },
+ { "packet", 1, NULL, '4' },
+ { }
};
static struct xt_statistic_info *info;
diff --git a/extensions/libxt_string.c b/extensions/libxt_string.c
index 698504d0..2e94eed8 100644
--- a/extensions/libxt_string.c
+++ b/extensions/libxt_string.c
@@ -45,12 +45,12 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { "from", 1, 0, '1' },
- { "to", 1, 0, '2' },
- { "algo", 1, 0, '3' },
- { "string", 1, 0, '4' },
- { "hex-string", 1, 0, '5' },
- {0}
+ { "from", 1, NULL, '1' },
+ { "to", 1, NULL, '2' },
+ { "algo", 1, NULL, '3' },
+ { "string", 1, NULL, '4' },
+ { "hex-string", 1, NULL, '5' },
+ { }
};
static void
diff --git a/extensions/libxt_tcp.c b/extensions/libxt_tcp.c
index 2c1a21a3..8c1b82cc 100644
--- a/extensions/libxt_tcp.c
+++ b/extensions/libxt_tcp.c
@@ -28,14 +28,14 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { "source-port", 1, 0, '1' },
- { "sport", 1, 0, '1' }, /* synonym */
- { "destination-port", 1, 0, '2' },
- { "dport", 1, 0, '2' }, /* synonym */
- { "syn", 0, 0, '3' },
- { "tcp-flags", 1, 0, '4' },
- { "tcp-option", 1, 0, '5' },
- {0}
+ { "source-port", 1, NULL, '1' },
+ { "sport", 1, NULL, '1' }, /* synonym */
+ { "destination-port", 1, NULL, '2' },
+ { "dport", 1, NULL, '2' }, /* synonym */
+ { "syn", 0, NULL, '3' },
+ { "tcp-flags", 1, NULL, '4' },
+ { "tcp-option", 1, NULL, '5' },
+ { }
};
static void
diff --git a/extensions/libxt_tcpmss.c b/extensions/libxt_tcpmss.c
index df56879b..23336fd9 100644
--- a/extensions/libxt_tcpmss.c
+++ b/extensions/libxt_tcpmss.c
@@ -20,8 +20,8 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { "mss", 1, 0, '1' },
- {0}
+ { "mss", 1, NULL, '1' },
+ { }
};
static u_int16_t
diff --git a/extensions/libxt_udp.c b/extensions/libxt_udp.c
index dcfa48d6..734a0a88 100644
--- a/extensions/libxt_udp.c
+++ b/extensions/libxt_udp.c
@@ -23,11 +23,11 @@ IPTABLES_VERSION);
}
static const struct option opts[] = {
- { "source-port", 1, 0, '1' },
- { "sport", 1, 0, '1' }, /* synonym */
- { "destination-port", 1, 0, '2' },
- { "dport", 1, 0, '2' }, /* synonym */
- {0}
+ { "source-port", 1, NULL, '1' },
+ { "sport", 1, NULL, '1' }, /* synonym */
+ { "destination-port", 1, NULL, '2' },
+ { "dport", 1, NULL, '2' }, /* synonym */
+ { }
};
static void