summaryrefslogtreecommitdiffstats
path: root/tests/py/bridge/reject.t.payload
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2017-05-07 01:47:48 +0200
committerFlorian Westphal <fw@strlen.de>2017-05-18 18:15:12 +0200
commit1e6ae0e42bdc161d178277c336886e18c259caf5 (patch)
tree11a3341387bc5eeabb7e752256402ce7c5abd13b /tests/py/bridge/reject.t.payload
parent3f0324f0a2a727fe4b86333306634a78593ccb80 (diff)
tests: add ip reject with tcp and check for mark too
... to avoid resetting e.g. the ssh session to the vm that runs nft-test.py. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/py/bridge/reject.t.payload')
-rw-r--r--tests/py/bridge/reject.t.payload4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/py/bridge/reject.t.payload b/tests/py/bridge/reject.t.payload
index f5a0e6a8..b984f6f8 100644
--- a/tests/py/bridge/reject.t.payload
+++ b/tests/py/bridge/reject.t.payload
@@ -64,8 +64,10 @@ bridge test-bridge input
[ cmp eq reg 1 0x0000dd86 ]
[ reject type 0 code 4 ]
-# ip protocol tcp reject with tcp reset
+# mark 12345 ip protocol tcp reject with tcp reset
bridge test-bridge input
+ [ meta load mark => reg 1 ]
+ [ cmp eq reg 1 0x00003039 ]
[ payload load 2b @ link header + 12 => reg 1 ]
[ cmp eq reg 1 0x00000008 ]
[ payload load 1b @ network header + 9 => reg 1 ]