summaryrefslogtreecommitdiffstats
path: root/include/net/netlink.h
diff options
context:
space:
mode:
authorDenis V. Lunev2008-01-10 12:26:13 +0100
committerDavid S. Miller2008-01-29 00:01:29 +0100
commit4d1169c1e781e5853317c6b75620d678b2c4854e (patch)
tree69e7a7cf4c0f619d13eec7ff85ab1837f3abaf16 /include/net/netlink.h
parent[NETNS]: Add netns parameter to inet_(dev_)add_type. (diff)
downloadkernel-qcow2-linux-4d1169c1e781e5853317c6b75620d678b2c4854e.tar.gz
kernel-qcow2-linux-4d1169c1e781e5853317c6b75620d678b2c4854e.tar.xz
kernel-qcow2-linux-4d1169c1e781e5853317c6b75620d678b2c4854e.zip
[NETNS]: Add netns to nl_info structure.
nl_info is used to track the end-user destination of routing change notification. This is a natural object to hold a namespace on. Place it there and utilize the context in the appropriate places. Acked-by: Benjamin Thery <benjamin.thery@bull.net> Acked-by: Daniel Lezcano <dlezcano@fr.ibm.com> Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/netlink.h')
-rw-r--r--include/net/netlink.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/netlink.h b/include/net/netlink.h
index a52d03601754..a5e6d0ef51dd 100644
--- a/include/net/netlink.h
+++ b/include/net/netlink.h
@@ -217,6 +217,7 @@ struct nla_policy {
*/
struct nl_info {
struct nlmsghdr *nlh;
+ struct net *nl_net;
u32 pid;
};