summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/maps/dumps/0010concat_map_0.nft
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/shell/testcases/maps/dumps/0010concat_map_0.nft
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/shell/testcases/maps/dumps/0010concat_map_0.nft')
-rw-r--r--tests/shell/testcases/maps/dumps/0010concat_map_0.nft2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/shell/testcases/maps/dumps/0010concat_map_0.nft b/tests/shell/testcases/maps/dumps/0010concat_map_0.nft
index 328c653c..b6bc338c 100644
--- a/tests/shell/testcases/maps/dumps/0010concat_map_0.nft
+++ b/tests/shell/testcases/maps/dumps/0010concat_map_0.nft
@@ -6,6 +6,6 @@ table inet x {
chain y {
type nat hook prerouting priority dstnat; policy accept;
- meta nfproto ipv4 dnat ip addr . port to ip saddr . ip protocol . tcp dport map @z
+ meta nfproto ipv4 dnat ip to ip saddr . ip protocol . tcp dport map @z
}
}