aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2015-01-12 09:34:05 -0500
committerJohannes Berg <johannes.berg@intel.com>2015-01-23 04:25:25 -0500
commit4b681c82d2f9bef121c912ffcaac89a004af3f2c (patch)
treeaf24f8eb044ffbddd346c3e34cd611963ab760ef /net/core
parentfa7e1fbcb52cc9efab394526a566d80fb31529bb (diff)
nl80211: Allow set network namespace by fd
Added new NL80211_ATTR_NETNS_FD which allows to set namespace via nl80211 by fd. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/net_namespace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c
index 7f155175bba8..5d5ee8f3e4ff 100644
--- a/net/core/net_namespace.c
+++ b/net/core/net_namespace.c
@@ -361,6 +361,7 @@ struct net *get_net_ns_by_fd(int fd)
361 return ERR_PTR(-EINVAL); 361 return ERR_PTR(-EINVAL);
362} 362}
363#endif 363#endif
364EXPORT_SYMBOL_GPL(get_net_ns_by_fd);
364 365
365struct net *get_net_ns_by_pid(pid_t pid) 366struct net *get_net_ns_by_pid(pid_t pid)
366{ 367{