diff options
author | Gao feng <gaofeng@cn.fujitsu.com> | 2012-06-07 21:20:41 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-08 17:27:23 -0400 |
commit | c8a627ed06d6d49bf65015a2185c519335c4c83f (patch) | |
tree | 2a67acd810661f3655162868bef0306e7ec51b86 /include/net/netns/ipv4.h | |
parent | 1578e7778fa04eb7e32da561effee6cd38139b0f (diff) |
inetpeer: add namespace support for inetpeer
now inetpeer doesn't support namespace,the information will
be leaking across namespace.
this patch move the global vars v4_peers and v6_peers to
netns_ipv4 and netns_ipv6 as a field peers.
add struct pernet_operations inetpeer_ops to initial pernet
inetpeer data.
and change family_to_base and inet_getpeer to support namespace.
Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/netns/ipv4.h')
-rw-r--r-- | include/net/netns/ipv4.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/netns/ipv4.h b/include/net/netns/ipv4.h index bbd023a1c9b9..227f0cd9d3f6 100644 --- a/include/net/netns/ipv4.h +++ b/include/net/netns/ipv4.h | |||
@@ -30,7 +30,7 @@ struct netns_ipv4 { | |||
30 | 30 | ||
31 | struct sock **icmp_sk; | 31 | struct sock **icmp_sk; |
32 | struct sock *tcp_sock; | 32 | struct sock *tcp_sock; |
33 | 33 | struct inet_peer_base *peers; | |
34 | struct netns_frags frags; | 34 | struct netns_frags frags; |
35 | #ifdef CONFIG_NETFILTER | 35 | #ifdef CONFIG_NETFILTER |
36 | struct xt_table *iptable_filter; | 36 | struct xt_table *iptable_filter; |