summaryrefslogtreecommitdiffstats
path: root/tests/py/ip/snat.t.payload
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2021-07-13 20:18:27 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2021-07-13 20:25:33 +0200
commitc68314dd4263575abaed43e052c7e61f6b359040 (patch)
tree858f9baaf7ebd9e697ca224739319c314b9519c2 /tests/py/ip/snat.t.payload
parent9b169bfc650ebeb81aff80ba2bf87d729dc3143e (diff)
src: infer NAT mapping with concatenation from set
If the map is anonymous, infer it from the set elements. Otherwise, the set definition already have an explicit concatenation definition in the data side of the mapping. This update simplifies the NAT mapping syntax with concatenations, e.g. snat ip to ip saddr map { 10.141.11.4 : 192.168.2.3 . 80 } Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/ip/snat.t.payload')
-rw-r--r--tests/py/ip/snat.t.payload2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/py/ip/snat.t.payload b/tests/py/ip/snat.t.payload
index 2a03ff1f..15f737cd 100644
--- a/tests/py/ip/snat.t.payload
+++ b/tests/py/ip/snat.t.payload
@@ -60,7 +60,7 @@ ip test-ip4 postrouting
[ immediate reg 1 0x0203a8c0 ]
[ nat snat ip addr_min reg 1 ]
-# snat ip addr . port to ip saddr map { 10.141.11.4 : 192.168.2.3 . 80 }
+# snat ip to ip saddr map { 10.141.11.4 : 192.168.2.3 . 80 }
__map%d test-ip4 b size 1
__map%d test-ip4 0
element 040b8d0a : 0302a8c0 00005000 0 [end]