summaryrefslogtreecommitdiffstats
path: root/extensions/libebt_vlan.t
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-11-12 12:49:11 +0100
committerFlorian Westphal <fw@strlen.de>2018-11-12 14:31:37 +0100
commit5f508b76a0cebaf91965ffa678089222e2d47964 (patch)
tree87ce013ac39490afc89811f34308820805d33fac /extensions/libebt_vlan.t
parent583b27eabcad6588ef6c923551df444c4e30a210 (diff)
ebtables: use extrapositioned negation consistently
in the iptables universe, we enforce extrapositioned negation: ! -i foo "-i ! foo" is not even supported anymore. At least make sure that ebtables prints the former syntax everywhere as well so we don't have a mix of both ways. Parsing of --option ! 42 will still work for backwards compat reasons. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'extensions/libebt_vlan.t')
-rw-r--r--extensions/libebt_vlan.t12
1 files changed, 10 insertions, 2 deletions
diff --git a/extensions/libebt_vlan.t b/extensions/libebt_vlan.t
index 58471caa..106374cd 100644
--- a/extensions/libebt_vlan.t
+++ b/extensions/libebt_vlan.t
@@ -1,5 +1,13 @@
:INPUT,FORWARD,OUTPUT
-p 802_1Q --vlan-id 42;=;OK
--p 802_1Q --vlan-prio ! 1;=;OK
+-p 802_1Q ! --vlan-id 42;=;OK
+-p 802_1Q --vlan-prio 1;=;OK
+-p 802_1Q ! --vlan-prio 1;=;OK
-p 802_1Q --vlan-encap ip;-p 802_1Q --vlan-encap 0800 -j CONTINUE;OK
--p 802_1Q --vlan-encap IPv6 ! --vlan-id 1;-p 802_1Q --vlan-id ! 1 --vlan-encap 86DD -j CONTINUE;OK
+-p 802_1Q --vlan-encap 0800 ;=;OK
+-p 802_1Q ! --vlan-encap 0800 ;=;OK
+-p 802_1Q --vlan-encap IPv6 ! --vlan-id 1;-p 802_1Q ! --vlan-id 1 --vlan-encap 86DD -j CONTINUE;OK
+-p 802_1Q ! --vlan-id 1 --vlan-encap 86DD;=;OK
+--vlan-encap ip;=;FAIL
+--vlan-id 2;=;FAIL
+--vlan-prio 1;=;FAIL