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/reject.t.payload | |
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/reject.t.payload')
-rw-r--r-- | tests/py/ip/reject.t.payload | 8 |
1 files changed, 8 insertions, 0 deletions
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 ] + |