From e2958fb2008607f3a2bc6dcd87da5f74a71ef209 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Thu, 23 Mar 2017 00:50:45 +0100 Subject: tests: don't kill dependencies accross statements add a test case for previous commit. Signed-off-by: Florian Westphal --- tests/py/ip/ip_tcp.t.payload | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/py/ip/ip_tcp.t.payload (limited to 'tests/py/ip/ip_tcp.t.payload') diff --git a/tests/py/ip/ip_tcp.t.payload b/tests/py/ip/ip_tcp.t.payload new file mode 100644 index 00000000..4f3d962e --- /dev/null +++ b/tests/py/ip/ip_tcp.t.payload @@ -0,0 +1,16 @@ +# ip protocol tcp tcp dport 22 +ip test-inet input + [ payload load 1b @ network header + 9 => reg 1 ] + [ cmp eq reg 1 0x00000006 ] + [ payload load 2b @ transport header + 2 => reg 1 ] + [ cmp eq reg 1 0x00001600 ] + +# ip protocol tcp meta mark set 1 tcp dport 22 +ip test-inet input + [ payload load 1b @ network header + 9 => reg 1 ] + [ cmp eq reg 1 0x00000006 ] + [ immediate reg 1 0x00000001 ] + [ meta set mark with reg 1 ] + [ payload load 2b @ transport header + 2 => reg 1 ] + [ cmp eq reg 1 0x00001600 ] + -- cgit v1.2.3