summaryrefslogtreecommitdiffstats
path: root/tests/py/inet/map.t.payload
diff options
context:
space:
mode:
Diffstat (limited to 'tests/py/inet/map.t.payload')
-rw-r--r--tests/py/inet/map.t.payload11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/py/inet/map.t.payload b/tests/py/inet/map.t.payload
index 50344ada..f9ab4ef6 100644
--- a/tests/py/inet/map.t.payload
+++ b/tests/py/inet/map.t.payload
@@ -1,10 +1,10 @@
# mark set ip saddr map { 10.2.3.2 : 0x0000002a, 10.2.3.1 : 0x00000017}
__map%d test-inet b
__map%d test-inet 0
- element 0203020a : 0000002a 0 [end] element 0103020a : 00000017 0 [end]
+ element 0a020302 : 0000002a element 0a020301 : 00000017
inet test-inet input
[ meta load nfproto => reg 1 ]
- [ cmp eq reg 1 0x00000002 ]
+ [ cmp eq reg 1 0x02 ]
[ payload load 4b @ network header + 12 => reg 1 ]
[ lookup reg 1 set __map%d dreg 1 ]
[ meta set mark with reg 1 ]
@@ -12,12 +12,11 @@ inet test-inet input
# mark set ip hdrlength map { 5 : 0x00000017, 4 : 0x00000001}
__map%d test-inet b
__map%d test-inet 0
- element 00000005 : 00000017 0 [end] element 00000004 : 00000001 0 [end]
+ element 05 : 00000017 element 04 : 00000001
inet test-inet input
[ meta load nfproto => reg 1 ]
- [ cmp eq reg 1 0x00000002 ]
+ [ cmp eq reg 1 0x02 ]
[ payload load 1b @ network header + 0 => reg 1 ]
- [ bitwise reg 1 = ( reg 1 & 0x0000000f ) ^ 0x00000000 ]
+ [ bitwise reg 1 = ( reg 1 & 0x0f ) ^ 0x00 ]
[ lookup reg 1 set __map%d dreg 1 ]
[ meta set mark with reg 1 ]
-