diff options
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 ] + |