From c68314dd4263575abaed43e052c7e61f6b359040 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 13 Jul 2021 20:18:27 +0200 Subject: 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 --- src/json.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/json.c') diff --git a/src/json.c b/src/json.c index edc9d640..63b325af 100644 --- a/src/json.c +++ b/src/json.c @@ -1331,8 +1331,6 @@ static json_t *nat_type_flags_json(uint32_t type_flags) if (type_flags & STMT_NAT_F_PREFIX) json_array_append_new(array, json_string("prefix")); - if (type_flags & STMT_NAT_F_CONCAT) - json_array_append_new(array, json_string("concat")); return array; } -- cgit v1.2.3