summaryrefslogtreecommitdiffstats
path: root/tests/py/inet/ether.t.payload
diff options
context:
space:
mode:
Diffstat (limited to 'tests/py/inet/ether.t.payload')
-rw-r--r--tests/py/inet/ether.t.payload37
1 files changed, 18 insertions, 19 deletions
diff --git a/tests/py/inet/ether.t.payload b/tests/py/inet/ether.t.payload
index 8b74a781..e0a36d43 100644
--- a/tests/py/inet/ether.t.payload
+++ b/tests/py/inet/ether.t.payload
@@ -1,52 +1,51 @@
# tcp dport 22 iiftype ether ether saddr 00:0f:54:0c:11:4 accept
inet test-inet input
[ meta load l4proto => reg 1 ]
- [ cmp eq reg 1 0x00000006 ]
+ [ cmp eq reg 1 0x06 ]
[ payload load 2b @ transport header + 2 => reg 1 ]
- [ cmp eq reg 1 0x00001600 ]
+ [ cmp eq reg 1 0x0016 ]
[ meta load iiftype => reg 1 ]
- [ cmp eq reg 1 0x00000001 ]
+ [ cmp eq reg 1 0x0001 ]
[ payload load 6b @ link header + 6 => reg 1 ]
- [ cmp eq reg 1 0x0c540f00 0x00000411 ]
+ [ cmp eq reg 1 0x000f540c 0x1104 ]
[ immediate reg 0 accept ]
# tcp dport 22 ether saddr 00:0f:54:0c:11:04 accept
inet test-inet input
[ meta load l4proto => reg 1 ]
- [ cmp eq reg 1 0x00000006 ]
+ [ cmp eq reg 1 0x06 ]
[ payload load 2b @ transport header + 2 => reg 1 ]
- [ cmp eq reg 1 0x00001600 ]
+ [ cmp eq reg 1 0x0016 ]
[ meta load iiftype => reg 1 ]
- [ cmp eq reg 1 0x00000001 ]
+ [ cmp eq reg 1 0x0001 ]
[ payload load 6b @ link header + 6 => reg 1 ]
- [ cmp eq reg 1 0x0c540f00 0x00000411 ]
+ [ cmp eq reg 1 0x000f540c 0x1104 ]
[ immediate reg 0 accept ]
# ether saddr 00:0f:54:0c:11:04 accept
inet test-inet input
[ meta load iiftype => reg 1 ]
- [ cmp eq reg 1 0x00000001 ]
+ [ cmp eq reg 1 0x0001 ]
[ payload load 6b @ link header + 6 => reg 1 ]
- [ cmp eq reg 1 0x0c540f00 0x00000411 ]
+ [ cmp eq reg 1 0x000f540c 0x1104 ]
[ immediate reg 0 accept ]
# vlan id 1
netdev test-netdev ingress
[ meta load iiftype => reg 1 ]
- [ cmp eq reg 1 0x00000001 ]
+ [ cmp eq reg 1 0x0001 ]
[ payload load 2b @ link header + 12 => reg 1 ]
- [ cmp eq reg 1 0x00000081 ]
+ [ cmp eq reg 1 0x8100 ]
[ payload load 2b @ link header + 14 => reg 1 ]
- [ bitwise reg 1 = ( reg 1 & 0x0000ff0f ) ^ 0x00000000 ]
- [ cmp eq reg 1 0x00000100 ]
+ [ bitwise reg 1 = ( reg 1 & 0x0fff ) ^ 0x0000 ]
+ [ cmp eq reg 1 0x0001 ]
# ether type vlan vlan id 2
netdev test-netdev ingress
[ meta load iiftype => reg 1 ]
- [ cmp eq reg 1 0x00000001 ]
+ [ cmp eq reg 1 0x0001 ]
[ payload load 2b @ link header + 12 => reg 1 ]
- [ cmp eq reg 1 0x00000081 ]
+ [ cmp eq reg 1 0x8100 ]
[ payload load 2b @ link header + 14 => reg 1 ]
- [ bitwise reg 1 = ( reg 1 & 0x0000ff0f ) ^ 0x00000000 ]
- [ cmp eq reg 1 0x00000200 ]
-
+ [ bitwise reg 1 = ( reg 1 & 0x0fff ) ^ 0x0000 ]
+ [ cmp eq reg 1 0x0002 ]