path: root/src
diff options
authorPablo Neira Ayuso <>2012-01-04 16:39:53 +0100
committerPablo Neira Ayuso <>2012-01-04 16:39:53 +0100
commit993fc230c9a372a503ca707937e16a23960720aa (patch)
treed12d89533fe6e986a8f7ee5c9c3a7a9d676188ac /src
parentf3b203c5e4cab5ab50de19e1da0850d16266fd29 (diff)
conntrack: fix set operation for master IPv6 src and dst
They seem to be accidentally swapped. Fix this. Spotted by qa/test_api. Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'src')
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conntrack/setter.c b/src/conntrack/setter.c
index 626d4df..afab94f 100644
--- a/src/conntrack/setter.c
+++ b/src/conntrack/setter.c
@@ -252,12 +252,12 @@ static void set_attr_master_ipv4_dst(struct nf_conntrack *ct, const void *value)
static void set_attr_master_ipv6_src(struct nf_conntrack *ct, const void *value)
- memcpy(&ct->master.dst.v6, value, sizeof(u_int32_t)*4);
+ memcpy(&ct->master.src.v6, value, sizeof(u_int32_t)*4);
static void set_attr_master_ipv6_dst(struct nf_conntrack *ct, const void *value)
- memcpy(&ct->master.src.v6, value, sizeof(u_int32_t)*4);
+ memcpy(&ct->master.dst.v6, value, sizeof(u_int32_t)*4);
static void set_attr_master_port_src(struct nf_conntrack *ct, const void *value)