diff options
author | Florian Westphal <fw@strlen.de> | 2017-05-07 01:47:48 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2017-05-18 18:15:12 +0200 |
commit | 1e6ae0e42bdc161d178277c336886e18c259caf5 (patch) | |
tree | 11a3341387bc5eeabb7e752256402ce7c5abd13b /tests/py/ip | |
parent | 3f0324f0a2a727fe4b86333306634a78593ccb80 (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/ip')
-rw-r--r-- | tests/py/ip/reject.t | 1 | ||||
-rw-r--r-- | tests/py/ip/reject.t.payload | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/py/ip/reject.t b/tests/py/ip/reject.t index 6006f054..7befe697 100644 --- a/tests/py/ip/reject.t +++ b/tests/py/ip/reject.t @@ -10,6 +10,7 @@ reject with icmp type port-unreachable;ok;reject reject with icmp type net-prohibited;ok reject with icmp type host-prohibited;ok reject with icmp type admin-prohibited;ok +mark 0x80000000 reject with tcp reset;ok reject with icmp type no-route;fail reject with icmpv6 type no-route;fail diff --git a/tests/py/ip/reject.t.payload b/tests/py/ip/reject.t.payload index d5e87665..ec94b4c1 100644 --- a/tests/py/ip/reject.t.payload +++ b/tests/py/ip/reject.t.payload @@ -30,3 +30,11 @@ ip test-ip4 output ip test-ip4 output [ reject type 0 code 13 ] +# mark 0x80000000 reject with tcp reset +ip test-ip4 output + [ payload load 1b @ network header + 9 => reg 1 ] + [ cmp eq reg 1 0x00000006 ] + [ meta load mark => reg 1 ] + [ cmp eq reg 1 0x80000000 ] + [ reject type 1 code 0 ] + |