summaryrefslogtreecommitdiffstats
path: root/tests/py/ip6
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/ip6
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/ip6')
-rw-r--r--tests/py/ip6/reject.t2
-rw-r--r--tests/py/ip6/reject.t.payload.ip64
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/py/ip6/reject.t b/tests/py/ip6/reject.t
index de09fd97..a95f2e3f 100644
--- a/tests/py/ip6/reject.t
+++ b/tests/py/ip6/reject.t
@@ -9,7 +9,7 @@ reject with icmpv6 type addr-unreachable;ok
reject with icmpv6 type port-unreachable;ok;reject
reject with icmpv6 type policy-fail;ok
reject with icmpv6 type reject-route;ok
-reject with tcp reset;ok
+mark 0x80000000 reject with tcp reset;ok
reject with icmpv6 type host-unreachable;fail
reject with icmp type host-unreachable;fail
diff --git a/tests/py/ip6/reject.t.payload.ip6 b/tests/py/ip6/reject.t.payload.ip6
index fcae382b..74263101 100644
--- a/tests/py/ip6/reject.t.payload.ip6
+++ b/tests/py/ip6/reject.t.payload.ip6
@@ -26,9 +26,11 @@ ip6 test-ip6 output
ip6 test-ip6 output
[ reject type 0 code 6 ]
-# reject with tcp reset
+# mark 0x80000000 reject with tcp reset
ip6 test-ip6 output
[ payload load 1b @ network header + 6 => reg 1 ]
[ cmp eq reg 1 0x00000006 ]
+ [ meta load mark => reg 1 ]
+ [ cmp eq reg 1 0x80000000 ]
[ reject type 1 code 0 ]