summaryrefslogtreecommitdiffstats
path: root/tests/py/inet
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/inet
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/inet')
-rw-r--r--tests/py/inet/reject.t2
-rw-r--r--tests/py/inet/reject.t.payload.inet4
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/py/inet/reject.t b/tests/py/inet/reject.t
index 638f329c..7679407e 100644
--- a/tests/py/inet/reject.t
+++ b/tests/py/inet/reject.t
@@ -16,7 +16,7 @@ reject with icmpv6 type admin-prohibited;ok;meta nfproto ipv6 reject with icmpv6
reject with icmpv6 type addr-unreachable;ok;meta nfproto ipv6 reject with icmpv6 type addr-unreachable
reject with icmpv6 type port-unreachable;ok;meta nfproto ipv6 reject
-reject with tcp reset;ok;meta l4proto 6 reject with tcp reset
+mark 12345 reject with tcp reset;ok;meta l4proto 6 mark 0x00003039 reject with tcp reset
reject;ok
meta nfproto ipv4 reject;ok
diff --git a/tests/py/inet/reject.t.payload.inet b/tests/py/inet/reject.t.payload.inet
index 5770330d..7a6468e8 100644
--- a/tests/py/inet/reject.t.payload.inet
+++ b/tests/py/inet/reject.t.payload.inet
@@ -64,10 +64,12 @@ inet test-inet input
[ cmp eq reg 1 0x0000000a ]
[ reject type 0 code 4 ]
-# reject with tcp reset
+# mark 12345 reject with tcp reset
inet test-inet input
[ meta load l4proto => reg 1 ]
[ cmp eq reg 1 0x00000006 ]
+ [ meta load mark => reg 1 ]
+ [ cmp eq reg 1 0x00003039 ]
[ reject type 1 code 0 ]
# reject