summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-eb.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-11-02 16:24:24 +0100
committerFlorian Westphal <fw@strlen.de>2018-11-03 20:35:22 +0100
commitcd90cef0c18a996f499c9e31fff7ee0554fe39f9 (patch)
tree225135e843d91e321e5de74af0c97e4765204188 /iptables/xtables-eb.c
parentfd95f1f0223f8e2ecf91aa8d1a4ba84576861082 (diff)
ebtables: relax -t table restriction, add snat/dnat test cases
Its artificial and prevents test cases that need to add rules to a different table from working. The test script generates: -A PREROUTING -t nat ... which works fine for iptables and ip6tables. Just accept it for ebtables too and add test cases for snat and dnat. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/xtables-eb.c')
-rw-r--r--iptables/xtables-eb.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/iptables/xtables-eb.c b/iptables/xtables-eb.c
index 721bab57..c36c12e6 100644
--- a/iptables/xtables-eb.c
+++ b/iptables/xtables-eb.c
@@ -1000,9 +1000,6 @@ print_zero:
}
break;
case 't': /* Table */
- if (OPT_COMMANDS)
- xtables_error(PARAMETER_PROBLEM,
- "Please put the -t option first");
ebt_check_option2(&flags, OPT_TABLE);
if (strlen(optarg) > EBT_TABLE_MAXNAMELEN - 1)
xtables_error(PARAMETER_PROBLEM,