summaryrefslogtreecommitdiffstats
path: root/tests/py/ip/numgen.t.payload
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2020-12-29 18:39:30 +0100
committerPhil Sutter <phil@nwl.cc>2021-03-09 14:25:00 +0100
commit8f5f6a77c3a08d0ac83dc7249b0f211b8a675438 (patch)
tree0c5a122b117cb892c98a00221da629876838a7ca /tests/py/ip/numgen.t.payload
parent68d5edd4d31e54b6add6d2af5b8baa0c0724a4dd (diff)
tests/py: Adjust payloads for fixed nat statement dumps
Libnftnl no longer dumps unused regs, so drop those. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'tests/py/ip/numgen.t.payload')
-rw-r--r--tests/py/ip/numgen.t.payload4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/py/ip/numgen.t.payload b/tests/py/ip/numgen.t.payload
index 04088b75..3349c68b 100644
--- a/tests/py/ip/numgen.t.payload
+++ b/tests/py/ip/numgen.t.payload
@@ -10,7 +10,7 @@ __map%d x 0
ip test-ip4 pre
[ numgen reg 1 = inc mod 2 ]
[ lookup reg 1 set __map%d dreg 1 ]
- [ nat dnat ip addr_min reg 1 addr_max reg 0 ]
+ [ nat dnat ip addr_min reg 1 ]
# dnat to numgen inc mod 10 map { 0-5 : 192.168.10.100, 6-9 : 192.168.20.200}
__map%d test-ip4 f
@@ -20,7 +20,7 @@ ip test-ip4 pre
[ numgen reg 1 = inc mod 10 ]
[ byteorder reg 1 = hton(reg 1, 4, 4) ]
[ lookup reg 1 set __map%d dreg 1 ]
- [ nat dnat ip addr_min reg 1 addr_max reg 0 ]
+ [ nat dnat ip addr_min reg 1 ]
# ct mark set numgen inc mod 2 offset 100
ip test-ip4 pre