summaryrefslogtreecommitdiffstats
path: root/extensions/libebt_vlan.t
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-11-02 16:19:20 +0100
committerFlorian Westphal <fw@strlen.de>2018-11-03 20:35:22 +0100
commitc3e8dbd4139589245403fd06479af9725c2bc341 (patch)
tree6a8a2b41b7891620875b3349930e68b267675b0a /extensions/libebt_vlan.t
parentcd90cef0c18a996f499c9e31fff7ee0554fe39f9 (diff)
ebtables: add test cases
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'extensions/libebt_vlan.t')
-rw-r--r--extensions/libebt_vlan.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/extensions/libebt_vlan.t b/extensions/libebt_vlan.t
new file mode 100644
index 00000000..58471caa
--- /dev/null
+++ b/extensions/libebt_vlan.t
@@ -0,0 +1,5 @@
+:INPUT,FORWARD,OUTPUT
+-p 802_1Q --vlan-id 42;=;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