[NETNS]: Make bind buckets live in net namespaces.
commit941b1d22cc035ad58b3d9b44a1c74efac2d7e499
authorPavel Emelyanov <xemul@openvz.org>
Thu, 31 Jan 2008 13:05:50 +0000 (31 05:05 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2008 03:28:18 +0000 (31 19:28 -0800)
tree9b50211c27a209c02d97b73f74bf33cc87f4c9c3
parent5ee31fc1ecdcbc234c8c56dcacef87c8e09909d8
[NETNS]: Make bind buckets live in net namespaces.

This tags the inet_bind_bucket struct with net pointer,
initializes it during creation and makes a filtering
during lookup.

A better hashfn, that takes the net into account is to
be done in the future, but currently all bind buckets
with similar port will be in one hash chain.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_hashtables.h
net/ipv4/inet_connection_sock.c
net/ipv4/inet_hashtables.c