]> git.baikalelectronics.ru Git - kernel.git/commit
[NETNS]: Make bind buckets live in net namespaces.
authorPavel Emelyanov <xemul@openvz.org>
Thu, 31 Jan 2008 13:05:50 +0000 (05:05 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2008 03:28:18 +0000 (19:28 -0800)
commit4fa9218a66ce2f325cf0ff1aa55f91f883c6aa67
tree9b50211c27a209c02d97b73f74bf33cc87f4c9c3
parent3ebd12ca5e5f3206187eac784ee914bd2addd045
[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