summaryrefslogtreecommitdiffstats
path: root/tests/py/inet/ip_tcp.t.payload
diff options
context:
space:
mode:
Diffstat (limited to 'tests/py/inet/ip_tcp.t.payload')
-rw-r--r--tests/py/inet/ip_tcp.t.payload10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/py/inet/ip_tcp.t.payload b/tests/py/inet/ip_tcp.t.payload
index 8bdc70c8..1e16f852 100644
--- a/tests/py/inet/ip_tcp.t.payload
+++ b/tests/py/inet/ip_tcp.t.payload
@@ -40,3 +40,13 @@ inet test-inet input
[ payload load 2b @ transport header + 2 => reg 1 ]
[ cmp eq reg 1 0x00001600 ]
+# ether type ip tcp dport 22
+inet test-inet input
+ [ meta load iiftype => reg 1 ]
+ [ cmp eq reg 1 0x00000001 ]
+ [ payload load 2b @ link header + 12 => reg 1 ]
+ [ cmp eq reg 1 0x00000008 ]
+ [ meta load l4proto => reg 1 ]
+ [ cmp eq reg 1 0x00000006 ]
+ [ payload load 2b @ transport header + 2 => reg 1 ]
+ [ cmp eq reg 1 0x00001600 ]