IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "set-mark", 1, 0, '1' },
{ "save-mark", 0, 0, '2' },
{ "restore-mark", 0, 0, '3' },
IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "save", 0, 0, '1' },
{ "restore", 0, 0, '2' },
{ 0 }
printf("%u ", info->hop_limit);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "hl-set", 1, 0, '1' },
{ "hl-dec", 1, 0, '2' },
{ "hl-inc", 1, 0, '3' },
IPTABLES_VERSION);
}
-static struct option opts[] = {
+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' },
IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ .name = "set-mark", .has_arg = 1, .flag = 0, .val = '1' },
{ .name = 0 }
};
NFLOG_THRESHOLD = 0x8,
};
-static struct option opts[] = {
+static const struct option opts[] = {
{ "nflog-group", 1, 0, NFLOG_GROUP },
{ "nflog-prefix", 1, 0, NFLOG_PREFIX },
{ "nflog-range", 1, 0, NFLOG_RANGE },
print_reject_types();
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "reject-with", 1, 0, '1' },
{ 0 }
};
IPTABLES_VERSION);
}
-static struct option opts[] = {
+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' },
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ .name = "condition", .has_arg = 1, .flag = 0, .val = 'X' },
{ .name = 0 }
};
IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "mark", 1, 0, '1' },
{0}
};
IPTABLES_VERSION, IP6T_OPTS_OPTSNR);
}
-static struct option opts[] = {
+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' },
IPTABLES_VERSION);
}
-static struct option opts[] = {
+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' },
"\n", IPTABLES_VERSION, XT_HASHLIMIT_BURST);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "hashlimit", 1, 0, '%' },
{ "hashlimit-burst", 1, 0, '$' },
{ "hashlimit-htable-size", 1, 0, '&' },
}
#if HOPBYHOP
-static struct option opts[] = {
+static const struct option opts[] = {
{ "hbh-len", 1, 0, '1' },
{ "hbh-opts", 1, 0, '2' },
{ "hbh-not-strict", 1, 0, '3' },
{0}
};
#else
-static struct option opts[] = {
+static const struct option opts[] = {
{ "dst-len", 1, 0, '1' },
{ "dst-opts", 1, 0, '2' },
{ "dst-not-strict", 1, 0, '3' },
printf("--hl-%s %u ", op[info->mode], info->hop_limit);
}
-static struct option opts[] = {
+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' },
print_icmpv6types();
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "icmpv6-type", 1, 0, '1' },
{0}
};
IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "header", 1, 0, '1' },
{ "soft", 0, 0, '2' },
{ 0 }
printf("--mh-type %u ", mhinfo->types[0]);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "mh-type", 1, 0, '1' },
{0}
};
#endif /* IP6T_OWNER_COMM */
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "uid-owner", 1, 0, '1' },
{ "gid-owner", 1, 0, '2' },
{ "pid-owner", 1, 0, '3' },
IPTABLES_VERSION);
}
-static struct option opts[] =
+static const struct option opts[] =
{
{
.name = "dir",
IPTABLES_VERSION, IP6T_RT_HOPS);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "rt-type", 1, 0, '1' },
{ "rt-segsleft", 1, 0, '2' },
{ "rt-len", 1, 0, '3' },
"\n", IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "state", 1, 0, '1' },
{0}
};
IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "set-class", 1, 0, '1' },
{ 0 }
};
#define PARAM_LOCALNODE 0x0010
#define PARAM_HASHINIT 0x0020
-static struct option opts[] = {
+static const struct option opts[] = {
{ "new", 0, 0, '1' },
{ "hashmode", 1, 0, '2' },
{ "clustermac", 1, 0, '3' },
IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "set-mark", 1, 0, '1' },
{ "save-mark", 0, 0, '2' },
{ "restore-mark", 0, 0, '3' },
IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "save", 0, 0, '1' },
{ "restore", 0, 0, '2' },
{ 0 }
IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "to-destination", 1, 0, '1' },
{ "random", 0, 0, '2' },
{ 0 }
);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "set-dscp", 1, 0, 'F' },
{ "set-dscp-class", 1, 0, 'G' },
{ 0 }
#endif
-static struct option opts[] = {
+static const struct option opts[] = {
{ "ecn-tcp-remove", 0, 0, 'F' },
{ "ecn-tcp-cwr", 1, 0, 'G' },
{ "ecn-tcp-ece", 1, 0, 'H' },
IPTABLES_VERSION);
}
-static struct option opts[] = {
+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' },
IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "set-mark", 1, 0, '1' },
{ "and-mark", 1, 0, '2' },
{ "or-mark", 1, 0, '3' },
IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "to-ports", 1, 0, '1' },
{ "random", 0, 0, '2' },
{ 0 }
#define MODULENAME "NETMAP"
-static struct option opts[] = {
+static const struct option opts[] = {
{ "to", 1, 0, '1' },
{ 0 }
};
NFLOG_THRESHOLD = 0x8,
};
-static struct option opts[] = {
+static const struct option opts[] = {
{ "nflog-group", 1, 0, NFLOG_GROUP },
{ "nflog-prefix", 1, 0, NFLOG_PREFIX },
{ "nflog-range", 1, 0, NFLOG_RANGE },
IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "to-ports", 1, 0, '1' },
{ "random", 1, 0, '2' },
{ 0 }
printf("(*) See man page or read the INCOMPATIBILITES file for compatibility issues.\n");
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "reject-with", 1, 0, '1' },
{ 0 }
};
IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "to", 1, 0, '1' },
{ "nodst", 0, 0, '2'},
{ "random", 0, 0, '3' },
"\n", IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{"add-set", 1, 0, '1'},
{"del-set", 1, 0, '2'},
{0}
IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "to-source", 1, 0, '1' },
{ "random", 0, 0, '2' },
{ 0 }
};
/* TOS names and values. */
-static
+static const
struct TOS_value
{
unsigned char TOS;
fputc('\n', stdout);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "set-tos", 1, 0, '1' },
{ 0 }
};
printf("%u ", info->ttl);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "ttl-set", 1, 0, '1' },
{ "ttl-dec", 1, 0, '2' },
{ "ttl-inc", 1, 0, '3' },
IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{"ulog-nlgroup", 1, 0, '!'},
{"ulog-prefix", 1, 0, '#'},
{"ulog-cprange", 1, 0, 'A'},
#include <linux/netfilter_ipv4/ipt_addrtype.h>
/* from linux/rtnetlink.h, must match order of enumeration */
-static char *rtn_names[] = {
+static const char *const rtn_names[] = {
"UNSPEC",
"UNICAST",
"LOCAL",
}
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "src-type", 1, 0, '1' },
{ "dst-type", 1, 0, '2' },
{ 0 }
IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "ahspi", 1, 0, '1' },
{0}
};
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ .name = "condition", .has_arg = 1, .flag = 0, .val = 'X' },
{ .name = 0 }
};
"\n", IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "connbytes", 1, 0, '1' },
{ "connbytes-dir", 1, 0, '2' },
{ "connbytes-mode", 1, 0, '3' },
IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "mark", 1, 0, '1' },
{0}
};
"\n", IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "connrate", 1, 0, '1' },
{0}
};
-static struct option opts[] = {
+static const struct option opts[] = {
{ "ctstate", 1, 0, '1' },
{ "ctproto", 1, 0, '2' },
{ "ctorigsrc", 1, 0, '3' },
#include <xtables.h>
-static struct ds_class
+static const struct ds_class
{
const char *name;
unsigned int dscp;
IPTABLES_VERSION);
}
-static struct option opts[] = {
+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' },
"\n", IPTABLES_VERSION, IPT_HASHLIMIT_BURST);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "hashlimit", 1, 0, '%' },
{ "hashlimit-burst", 1, 0, '$' },
{ "hashlimit-htable-size", 1, 0, '&' },
IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "helper", 1, 0, '1' },
{0}
};
print_icmptypes();
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "icmp-type", 1, 0, '1' },
{0}
};
IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "src-range", 1, 0, '1' },
{ "dst-range", 1, 0, '2' },
{0}
#endif /* IPT_OWNER_COMM */
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "uid-owner", 1, 0, '1' },
{ "gid-owner", 1, 0, '2' },
{ "pid-owner", 1, 0, '3' },
IPTABLES_VERSION);
}
-static struct option opts[] =
+static const struct option opts[] =
{
{
.name = "dir",
"\n", IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "realm", 1, 0, '1' },
{0}
};
#endif /* IPT_RECENT_NAME_LEN */
/* Options for this module */
-static struct option opts[] = {
+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 },
"\n", IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{"set", 1, 0, '1'},
{0}
};
"\n", IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "state", 1, 0, '1' },
{0}
};
IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "mode", 1, 0, '1' },
{ "probability", 1, 0, '2' },
{ "every", 1, 0, '3' },
#include <linux/netfilter_ipv4/ipt_tos.h>
/* TOS names and values. */
-static
+static const
struct TOS_value
{
unsigned char TOS;
fputc('\n', stdout);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "tos", 1, 0, '1' },
{0}
};
printf("%u ", info->ttl);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "ttl", 1, 0, '2' },
{ "ttl-eq", 1, 0, '2'},
{ "ttl-lt", 1, 0, '3'},
);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "queue-num", 1, 0, 'F' },
{ 0 }
};
IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "selctx", 1, 0, '1' },
{ 0 }
};
__help(60);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "set-mss", 1, 0, '1' },
{ "clamp-mss-to-pmtu", 0, 0, '2' },
{ 0 }
);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "comment", 1, 0, '1' },
{0}
};
IPTABLES_VERSION);
}
-static struct option opts[] = {
+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' },
);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "dscp", 1, 0, 'F' },
{ "dscp-class", 1, 0, 'G' },
{ 0 }
IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "espspi", 1, 0, '1' },
{0}
};
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "length", 1, 0, '1' },
{0}
};
"\n", IPTABLES_VERSION, XT_LIMIT_BURST);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "limit", 1, 0, '%' },
{ "limit-burst", 1, 0, '$' },
{ 0 }
"\n", IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "mac-source", 1, 0, '1' },
{0}
};
IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "mark", 1, 0, '1' },
{0}
};
IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "source-ports", 1, 0, '1' },
{ "sports", 1, 0, '1' }, /* synonym */
{ "destination-ports", 1, 0, '2' },
"\n", IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "physdev-in", 1, 0, '1' },
{ "physdev-out", 1, 0, '2' },
{ "physdev-is-in", 0, 0, '3' },
print_types();
}
-static struct option opts[] = {
+static const struct option opts[] = {
{"pkt-type", 1, 0, '1'},
{0}
};
#include <linux/netfilter/xt_quota.h>
-static struct option opts[] = {
+static const struct option opts[] = {
{"quota", 1, 0, '1'},
{0}
};
IPTABLES_VERSION);
}
-static struct option opts[] = {
+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' },
IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "from", 1, 0, '1' },
{ "to", 1, 0, '2' },
{ "algo", 1, 0, '3' },
IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "source-port", 1, 0, '1' },
{ "sport", 1, 0, '1' }, /* synonym */
{ "destination-port", 1, 0, '2' },
IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "mss", 1, 0, '1' },
{0}
};
IPTABLES_VERSION);
}
-static struct option opts[] = {
+static const struct option opts[] = {
{ "source-port", 1, 0, '1' },
{ "sport", 1, 0, '1' }, /* synonym */
{ "destination-port", 1, 0, '2' },