summaryrefslogtreecommitdiffstats
path: root/tests/py/inet/ip.t.payload.ip
diff options
context:
space:
mode:
Diffstat (limited to 'tests/py/inet/ip.t.payload.ip')
-rw-r--r--tests/py/inet/ip.t.payload.ip11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/py/inet/ip.t.payload.ip b/tests/py/inet/ip.t.payload.ip
new file mode 100644
index 00000000..66f14681
--- /dev/null
+++ b/tests/py/inet/ip.t.payload.ip
@@ -0,0 +1,11 @@
+# ip saddr . ip daddr . ether saddr { 1.1.1.1 . 2.2.2.2 . ca:fe:ca:fe:ca:fe }
+set%d test-ip4 3
+set%d test-ip4 0
+ element 01010101 02020202 fecafeca 0000feca : 0 [end]
+ip test-ip4 input
+ [ meta load iiftype => reg 1 ]
+ [ cmp eq reg 1 0x00000001 ]
+ [ payload load 4b @ network header + 12 => reg 1 ]
+ [ payload load 4b @ network header + 16 => reg 9 ]
+ [ payload load 6b @ link header + 6 => reg 10 ]
+ [ lookup reg 1 set set%d ]