[PATCH net-next v3 1/2] inetpeer: add namespace support for inetpeer

David Miller davem at davemloft.net
Fri Jun 8 21:27:42 UTC 2012


From: Gao feng <gaofeng at cn.fujitsu.com>
Date: Fri,  8 Jun 2012 14:41:23 +0800

> 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 at cn.fujitsu.com>

Applied.


More information about the Containers mailing list