]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: py: Drop stale entry from ip/snat.t.payload
authorPhil Sutter <phil@nwl.cc>
Wed, 13 Aug 2025 14:06:46 +0000 (16:06 +0200)
committerPhil Sutter <phil@nwl.cc>
Mon, 18 Aug 2025 20:57:22 +0000 (22:57 +0200)
This payload actually belongs to ip/dnat.t.payload, fixed commit added
it to the wrong file.

Fixes: 8f3048954d40d ("evaluate: postpone transport protocol match check after nat expression evaluation")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Reviewed-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/py/ip/snat.t.payload

index 7044d7b023bb79c2b3b86f34bb9c59158d090965..ef45489959704a224824c0a9c1bef1cb6caa023f 100644 (file)
@@ -135,17 +135,3 @@ ip
   [ payload load 2b @ transport header + 2 => reg 9 ]
   [ lookup reg 1 set __map%d dreg 1 ]
   [ nat snat ip addr_min reg 1 proto_min reg 9 ]
-
-# ip daddr 192.168.0.1 dnat to tcp dport map { 443 : 10.141.10.4 . 8443, 80 : 10.141.10.4 . 8080 }
-__map%d x b size 2
-__map%d x 0
-        element 0000bb01  : 040a8d0a 0000fb20 0 [end]   element 00005000  : 040a8d0a 0000901f 0 [end]
-ip
-  [ payload load 4b @ network header + 16 => reg 1 ]
-  [ cmp eq reg 1 0x0100a8c0 ]
-  [ meta load l4proto => reg 1 ]
-  [ cmp eq reg 1 0x00000006 ]
-  [ payload load 2b @ transport header + 2 => reg 1 ]
-  [ lookup reg 1 set __map%d dreg 1 ]
-  [ nat dnat ip addr_min reg 1 proto_min reg 9 ]
-