diff options
author | Arturo Borrero <arturo.borrero.glez@gmail.com> | 2016-05-18 10:56:19 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-05-20 11:35:01 +0200 |
commit | f5e51ad64d9e5597e8880b652abe261585c2563d (patch) | |
tree | e58eee104ebfa509fbbf8a0aaed636e0bedb3e83 /src/conntrack/copy.c | |
parent | 3866d4c0fd019770578c6241b59393e1ecb4bc7d (diff) |
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 <arturo.borrero.glez@gmail.com>
Diffstat (limited to 'src/conntrack/copy.c')
-rw-r--r-- | src/conntrack/copy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conntrack/copy.c b/src/conntrack/copy.c index 249e7e0..eac977b 100644 --- a/src/conntrack/copy.c +++ b/src/conntrack/copy.c @@ -287,13 +287,13 @@ static void copy_attr_dccp_handshake_seq(struct nf_conntrack *dest, static void copy_attr_snat_ipv4(struct nf_conntrack *dest, const struct nf_conntrack *orig) { - dest->snat.min_ip = orig->snat.min_ip; + dest->snat.min_ip.v4 = orig->snat.min_ip.v4; } static void copy_attr_dnat_ipv4(struct nf_conntrack *dest, const struct nf_conntrack *orig) { - dest->dnat.min_ip = orig->dnat.min_ip; + dest->dnat.min_ip.v4 = orig->dnat.min_ip.v4; } static void copy_attr_snat_port(struct nf_conntrack *dest, |