From 99bc9c4e45e7e783cf0b0a25cc03a103c038f254 Mon Sep 17 00:00:00 2001 From: Daniel Lezcano Date: Thu, 10 Jan 2008 02:54:53 -0800 Subject: [NETNS][IPV6]: Make bindv6only sysctl per namespace. This patch moves the bindv6only sysctl to the network namespace structure. Until the ipv6 protocol is not per namespace, the sysctl variable is always from the initial network namespace. Signed-off-by: Daniel Lezcano Signed-off-by: David S. Miller --- include/net/ipv6.h | 1 - include/net/netns/ipv6.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'include/net') diff --git a/include/net/ipv6.h b/include/net/ipv6.h index 5519035491e7..d03a4076e227 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h @@ -109,7 +109,6 @@ struct frag_hdr { #include /* sysctls */ -extern int sysctl_ipv6_bindv6only; extern int sysctl_mld_max_msf; extern struct ctl_path net_ipv6_ctl_path[]; diff --git a/include/net/netns/ipv6.h b/include/net/netns/ipv6.h index 58fbf30d9fdb..42b9b412fb87 100644 --- a/include/net/netns/ipv6.h +++ b/include/net/netns/ipv6.h @@ -11,6 +11,7 @@ struct netns_sysctl_ipv6 { #ifdef CONFIG_SYSCTL struct ctl_table_header *table; #endif + int bindv6only; }; struct netns_ipv6 { -- cgit v1.2.3