diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-08-30 12:22:47 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-08-30 12:39:01 +0200 |
commit | 595f08823d46dc44f91092d660ead1495346f18b (patch) | |
tree | 922578d2827f15d9f66ce6473eaad89ff1ee1513 /tests/py/ip/hash.t.payload | |
parent | a26d13e2b099d750e5333a563f5d802bf568eb59 (diff) |
tests: py: adapt netlink bytecode output of numgen and hash
Adapt them to the revisited output string now in libnftnl.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/ip/hash.t.payload')
-rw-r--r-- | tests/py/ip/hash.t.payload | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/py/ip/hash.t.payload b/tests/py/ip/hash.t.payload index 429e2b76..d9a22eba 100644 --- a/tests/py/ip/hash.t.payload +++ b/tests/py/ip/hash.t.payload @@ -2,7 +2,7 @@ ip test-ip4 pre [ payload load 4b @ network header + 12 => reg 2 ] [ payload load 4b @ network header + 16 => reg 13 ] - [ hash reg 1 = jhash(reg 2, 8, 3735928559) % modulus 2] + [ hash reg 1 = jhash(reg 2, 8, 0xdeadbeef) % mod 2 ] [ ct set mark with reg 1 ] # dnat to jhash ip saddr mod 2 seed 0xdeadbeef map { 0 : 192.168.20.100, 1 : 192.168.30.100 } @@ -11,7 +11,7 @@ __map%d test-ip4 0 element 00000000 : 6414a8c0 0 [end] element 01000000 : 641ea8c0 0 [end] ip test-ip4 pre [ payload load 4b @ network header + 12 => reg 2 ] - [ hash reg 1 = jhash(reg 2, 4, 3735928559) % modulus 2] + [ hash reg 1 = jhash(reg 2, 4, 0xdeadbeef) % mod 2 ] [ lookup reg 1 set __map%d dreg 1 ] [ nat dnat ip addr_min reg 1 addr_max reg 0 ] |