summaryrefslogtreecommitdiffstats
path: root/extensions/libebt_pkttype.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_pkttype.t
parentcd90cef0c18a996f499c9e31fff7ee0554fe39f9 (diff)
ebtables: add test cases
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'extensions/libebt_pkttype.t')
-rw-r--r--extensions/libebt_pkttype.t13
1 files changed, 13 insertions, 0 deletions
diff --git a/extensions/libebt_pkttype.t b/extensions/libebt_pkttype.t
new file mode 100644
index 00000000..921cf3ac
--- /dev/null
+++ b/extensions/libebt_pkttype.t
@@ -0,0 +1,13 @@
+:INPUT,FORWARD,OUTPUT
+-s 0:0:0:0:0:0;=;OK
+-d 00:00:0:00:00:00;-d 0:0:0:0:0:0;OK
+-s de:ad:be:ef:0:00 -j RETURN;-s de:ad:be:ef:0:0 -j RETURN;OK
+-d de:ad:be:ef:0:0;=;OK
+! --pkttype-type host;--pkttype-type ! host -j CONTINUE;OK
+--pkttype-type host;=;OK
+--pkttype-type broadcast;=;OK
+--pkttype-type ! multicast;=;OK
+--pkttype-type multicast;=;OK
+--pkttype-type otherhost;=;OK
+--pkttype-type outgoing;=;OK
+--pkttype-type loopback;=;OK