From cd90cef0c18a996f499c9e31fff7ee0554fe39f9 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Fri, 2 Nov 2018 16:24:24 +0100 Subject: 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 --- iptables/xtables-eb.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'iptables/xtables-eb.c') 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, -- cgit v1.2.3