From f5e51ad64d9e5597e8880b652abe261585c2563d Mon Sep 17 00:00:00 2001 From: Arturo Borrero Date: Wed, 18 May 2016 10:56:19 +0200 Subject: src: add support for IPv6 to struct __nfct_nat The conntrackd daemon lacks support for syncing IPv6 NATed connections. This patch prepares the ground to give support to such operations: * replace uint32_t with union __nfct_address in struct __nfct_nat. * update all users of the former uint32_t to support the new struct A follow-up patch gives support to actually manage the IPv6 NAT. Signed-off-by: Arturo Borrero Gonzalez --- src/conntrack/getter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/conntrack/getter.c') diff --git a/src/conntrack/getter.c b/src/conntrack/getter.c index ef4ec1d..20dd905 100644 --- a/src/conntrack/getter.c +++ b/src/conntrack/getter.c @@ -206,12 +206,12 @@ static const void *get_attr_sctp_vtag_repl(const struct nf_conntrack *ct) static const void *get_attr_snat_ipv4(const struct nf_conntrack *ct) { - return &ct->snat.min_ip; + return &ct->snat.min_ip.v4; } static const void *get_attr_dnat_ipv4(const struct nf_conntrack *ct) { - return &ct->dnat.min_ip; + return &ct->dnat.min_ip.v4; } static const void *get_attr_snat_port(const struct nf_conntrack *ct) -- cgit v1.2.3