]> git.baikalelectronics.ru Git - kernel.git/commit
inetpeer: add namespace support for inetpeer
authorGao feng <gaofeng@cn.fujitsu.com>
Fri, 8 Jun 2012 01:20:41 +0000 (01:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Jun 2012 21:27:23 +0000 (14:27 -0700)
commit51e6baedde62e4a27788b7982b0aabdb4bcb1b22
tree2a67acd810661f3655162868bef0306e7ec51b86
parent0b8d506408681cc9b26bb87cf7e33c94947c98c7
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>
include/net/inetpeer.h
include/net/netns/ipv4.h
include/net/netns/ipv6.h
net/ipv4/inetpeer.c
net/ipv4/route.c