diff options
author | Florian Westphal <fw@strlen.de> | 2017-05-07 04:04:03 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2017-05-19 09:41:22 +0200 |
commit | 5f46b18745d18c486e959c93da649c18c8b10fe0 (patch) | |
tree | 1d56b003ba39a44ef0acca8f777389b7eccad394 /tests/py/inet/map.t.payload.ip | |
parent | 0825c57d571bb7121e7048e198b9b023f7e7f358 (diff) |
tests: fix up meta l4proto change for ip family
We can delete some of the payload files now as ip/ip6/inet produce
same implicit meta l4proto dep.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/py/inet/map.t.payload.ip')
-rw-r--r-- | tests/py/inet/map.t.payload.ip | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/py/inet/map.t.payload.ip b/tests/py/inet/map.t.payload.ip index dfd571d5..59575749 100644 --- a/tests/py/inet/map.t.payload.ip +++ b/tests/py/inet/map.t.payload.ip @@ -1,8 +1,8 @@ # mark set ip saddr map { 10.2.3.2 : 0x0000002a, 10.2.3.1 : 0x00000017} -__map%d test-ip b -__map%d test-ip 0 - element 0103020a : 00000017 0 [end] element 0203020a : 0000002a 0 [end] -ip test-ip input +__map%d test-ip4 b +__map%d test-ip4 0 + element 0203020a : 0000002a 0 [end] element 0103020a : 00000017 0 [end] +ip test-ip4 input [ payload load 4b @ network header + 12 => reg 1 ] [ lookup reg 1 set __map%d dreg 1 ] [ meta set mark with reg 1 ] @@ -10,8 +10,8 @@ ip test-ip input # mark set ip hdrlength map { 5 : 0x00000017, 4 : 0x00000001} __map%d test-ip4 b __map%d test-ip4 0 - element 00000004 : 00000001 0 [end] element 00000005 : 00000017 0 [end] -ip test-ip4 input + element 00000005 : 00000017 0 [end] element 00000004 : 00000001 0 [end] +ip test-ip4 input [ payload load 1b @ network header + 0 => reg 1 ] [ bitwise reg 1 = (reg=1 & 0x0000000f ) ^ 0x00000000 ] [ lookup reg 1 set __map%d dreg 1 ] |