ipv6: data of fwmark_reflect sysctl needs to be updated on netns construction
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Fri, 1 Aug 2014 12:41:10 +0000 (14:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Aug 2014 23:16:54 +0000 (16:16 -0700)
Fixes: e110861f86094cd ("net: add a sysctl to reflect the fwmark on replies")
Cc: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/sysctl_net_ipv6.c

index 058f3eca2e53efd1fe016cfe8450d3ab0a9c13b1..818334619abbb41a06da2c690e235de43f617ca2 100644 (file)
@@ -74,6 +74,7 @@ static int __net_init ipv6_sysctl_net_init(struct net *net)
        ipv6_table[0].data = &net->ipv6.sysctl.bindv6only;
        ipv6_table[1].data = &net->ipv6.sysctl.anycast_src_echo_reply;
        ipv6_table[2].data = &net->ipv6.sysctl.flowlabel_consistency;
+       ipv6_table[3].data = &net->ipv6.sysctl.fwmark_reflect;
 
        ipv6_route_table = ipv6_route_sysctl_init(net);
        if (!ipv6_route_table)