From 1e6ae0e42bdc161d178277c336886e18c259caf5 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Sun, 7 May 2017 01:47:48 +0200 Subject: 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 --- tests/py/ip/reject.t | 1 + tests/py/ip/reject.t.payload | 8 ++++++++ 2 files changed, 9 insertions(+) (limited to 'tests/py/ip') 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 ] + -- cgit v1.2.3