summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-restore.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2020-02-21 13:29:05 +0100
committerPhil Sutter <phil@nwl.cc>2020-02-24 12:04:27 +0100
commit0f40a8bc49d3f7b815336199931a82f919f37c4e (patch)
treed844fce00e51f8ffec7f652406c6fb8a3a359860 /iptables/xtables-restore.c
parent1639b8ba5105542c73e0e1c35e70f245dab89d81 (diff)
xtables: Drop -4 and -6 support from xtables-{save,restore}
Legacy tools don't support those options, either. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/xtables-restore.c')
-rw-r--r--iptables/xtables-restore.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c
index fb2ac8b5..61a3c920 100644
--- a/iptables/xtables-restore.c
+++ b/iptables/xtables-restore.c
@@ -381,7 +381,7 @@ xtables_restore_main(int family, const char *progname, int argc, char *argv[])
exit(1);
}
- while ((c = getopt_long(argc, argv, "bcvVthnM:T:46wW", options, NULL)) != -1) {
+ while ((c = getopt_long(argc, argv, "bcvVthnM:T:wW", options, NULL)) != -1) {
switch (c) {
case 'b':
fprintf(stderr, "-b/--binary option is not implemented\n");
@@ -410,13 +410,6 @@ xtables_restore_main(int family, const char *progname, int argc, char *argv[])
case 'T':
p.tablename = optarg;
break;
- case '4':
- h.family = AF_INET;
- break;
- case '6':
- h.family = AF_INET6;
- xtables_set_nfproto(AF_INET6);
- break;
case 'w': /* fallthrough. Ignored by xt-restore */
case 'W':
if (!optarg && xs_has_arg(argc, argv))