From 9b169bfc650ebeb81aff80ba2bf87d729dc3143e Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 13 Jul 2021 20:18:15 +0200 Subject: src: remove STMT_NAT_F_INTERVAL flags and interval keyword STMT_NAT_F_INTERVAL is not useful, the keyword interval can be removed to simplify the syntax, e.g. snat to ip saddr map { 10.141.11.4 : 192.168.2.2-192.168.2.4 } This patch reworks 9599d9d25a6b ("src: NAT support for intervals in maps"). Do not remove STMT_NAT_F_INTERVAL yet since this flag is needed for interval concatenations coming in a follow up patch. 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 f111ad67..edc9d640 100644 --- a/src/json.c +++ b/src/json.c @@ -1329,8 +1329,6 @@ static json_t *nat_type_flags_json(uint32_t type_flags) { json_t *array = json_array(); - if (type_flags & STMT_NAT_F_INTERVAL) - json_array_append_new(array, json_string("interval")); if (type_flags & STMT_NAT_F_PREFIX) json_array_append_new(array, json_string("prefix")); if (type_flags & STMT_NAT_F_CONCAT) -- cgit v1.2.3