summaryrefslogtreecommitdiffstats
path: root/tests/py/bridge
diff options
context:
space:
mode:
Diffstat (limited to 'tests/py/bridge')
-rw-r--r--tests/py/bridge/ether.t2
-rw-r--r--tests/py/bridge/ether.t.payload8
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/py/bridge/ether.t b/tests/py/bridge/ether.t
index 5b39fe0b..4a177ab0 100644
--- a/tests/py/bridge/ether.t
+++ b/tests/py/bridge/ether.t
@@ -6,3 +6,5 @@ tcp dport 22 iiftype ether ip daddr 1.2.3.4 ether saddr 00:0f:54:0c:11:4 accept;
tcp dport 22 ip daddr 1.2.3.4 ether saddr 00:0f:54:0c:11:04;ok;tcp dport 22 ether saddr 00:0f:54:0c:11:04 ip daddr 1.2.3.4
tcp dport 22 ether saddr 00:0f:54:0c:11:04 ip daddr 1.2.3.4;ok
ether saddr 00:0f:54:0c:11:04 ip daddr 1.2.3.4 accept;ok
+
+ether daddr 00:01:02:03:04:05 ether saddr set ff:ff:ff:ff:ff:ff drop;ok
diff --git a/tests/py/bridge/ether.t.payload b/tests/py/bridge/ether.t.payload
index 8fdb0a95..c545d657 100644
--- a/tests/py/bridge/ether.t.payload
+++ b/tests/py/bridge/ether.t.payload
@@ -42,3 +42,11 @@ bridge test-bridge input
[ cmp eq reg 1 0x04030201 ]
[ immediate reg 0 accept ]
+# ether daddr 00:01:02:03:04:05 ether saddr set ff:ff:ff:ff:ff:ff drop
+bridge test-bridge input
+ [ payload load 6b @ link header + 0 => reg 1 ]
+ [ cmp eq reg 1 0x03020100 0x00000504 ]
+ [ immediate reg 1 0xffffffff 0x0000ffff ]
+ [ payload write reg 1 => 6b @ link header + 6 csum_type 0 csum_off 0 ]
+ [ immediate reg 0 drop ]
+