From d3d2bee2d9ebd565e006f213c76cfa316b5e5ab1 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Tue, 25 Aug 2015 14:22:41 +0200 Subject: conntrack: add zone attribute to tuple This patch adds the front-end to the recent ctnetlink interface changes that add the zone attribute into the tuple. Signed-off-by: Daniel Borkmann Signed-off-by: Pablo Neira Ayuso --- src/conntrack/getter.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/conntrack/getter.c') diff --git a/src/conntrack/getter.c b/src/conntrack/getter.c index ae546ee..ef4ec1d 100644 --- a/src/conntrack/getter.c +++ b/src/conntrack/getter.c @@ -69,6 +69,16 @@ static const void *get_attr_repl_port_dst(const struct nf_conntrack *ct) return &ct->repl.l4dst.all; } +static const void *get_attr_orig_zone(const struct nf_conntrack *ct) +{ + return &ct->head.orig.zone; +} + +static const void *get_attr_repl_zone(const struct nf_conntrack *ct) +{ + return &ct->repl.zone; +} + static const void *get_attr_icmp_type(const struct nf_conntrack *ct) { return &ct->head.orig.l4dst.icmp.type; @@ -412,6 +422,8 @@ const get_attr get_attr_array[ATTR_MAX] = { [ATTR_TCP_WSCALE_ORIG] = get_attr_tcp_wscale_orig, [ATTR_TCP_WSCALE_REPL] = get_attr_tcp_wscale_repl, [ATTR_ZONE] = get_attr_zone, + [ATTR_ORIG_ZONE] = get_attr_orig_zone, + [ATTR_REPL_ZONE] = get_attr_repl_zone, [ATTR_SECCTX] = get_attr_secctx, [ATTR_TIMESTAMP_START] = get_attr_timestamp_start, [ATTR_TIMESTAMP_STOP] = get_attr_timestamp_stop, -- cgit v1.2.3