From f9465cf517ccc88d5ebfa4c7e3cbb2ed1bc899b0 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 27 Apr 2020 12:21:34 +0200 Subject: src: add STMT_NAT_F_CONCAT flag and use it Replace ipportmap boolean field by flags. Signed-off-by: Pablo Neira Ayuso --- src/netlink_linearize.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/netlink_linearize.c') diff --git a/src/netlink_linearize.c b/src/netlink_linearize.c index 944fcdae..08f7f89f 100644 --- a/src/netlink_linearize.c +++ b/src/netlink_linearize.c @@ -1127,15 +1127,15 @@ static void netlink_gen_nat_stmt(struct netlink_linearize_ctx *ctx, } } - if (stmt->nat.ipportmap) { + if (stmt->nat.type_flags & STMT_NAT_F_CONCAT) { /* nat_stmt evaluation step doesn't allow - * stmt->nat.ipportmap && stmt->nat.proto. + * STMT_NAT_F_CONCAT && stmt->nat.proto. */ assert(stmt->nat.proto == NULL); pmin_reg = amin_reg; - /* if ipportmap is set, the mapped type is a + /* if STMT_NAT_F_CONCAT is set, the mapped type is a * concatenation of 'addr . inet_service'. * The map lookup will then return the * concatenated value, so we need to skip -- cgit v1.2.3