diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2011-05-04 20:51:50 -0400 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2011-05-10 17:36:03 -0400 |
commit | f063052947f770845a6252f7fa24f6f624592a24 (patch) | |
tree | 17513dbd49d5a1a08443d76374d10dda6114b7a7 /include/net | |
parent | a00eaf11a223c63fbb212369d6db69ce4c55a2d1 (diff) |
net: Allow setting the network namespace by fd
Take advantage of the new abstraction and allow network devices
to be placed in any network namespace that we have a fd to talk
about.
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Daniel Lezcano <daniel.lezcano@free.fr>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/net_namespace.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h index 3ae491932bc8..dcc8f5749d3f 100644 --- a/include/net/net_namespace.h +++ b/include/net/net_namespace.h | |||
@@ -119,6 +119,7 @@ static inline struct net *copy_net_ns(unsigned long flags, struct net *net_ns) | |||
119 | extern struct list_head net_namespace_list; | 119 | extern struct list_head net_namespace_list; |
120 | 120 | ||
121 | extern struct net *get_net_ns_by_pid(pid_t pid); | 121 | extern struct net *get_net_ns_by_pid(pid_t pid); |
122 | extern struct net *get_net_ns_by_fd(int pid); | ||
122 | 123 | ||
123 | #ifdef CONFIG_NET_NS | 124 | #ifdef CONFIG_NET_NS |
124 | extern void __put_net(struct net *net); | 125 | extern void __put_net(struct net *net); |