summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2015-01-12 16:34:05 +0200
committerJohannes Berg <johannes.berg@intel.com>2015-01-23 10:25:25 +0100
commit4b681c82d2f9bef121c912ffcaac89a004af3f2c (patch)
treeaf24f8eb044ffbddd346c3e34cd611963ab760ef /net/core
parentfa7e1fbcb52cc9efab394526a566d80fb31529bb (diff)
downloadop-kernel-dev-4b681c82d2f9bef121c912ffcaac89a004af3f2c.zip
op-kernel-dev-4b681c82d2f9bef121c912ffcaac89a004af3f2c.tar.gz
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 7f15517..5d5ee8f 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)
return ERR_PTR(-EINVAL);
}
#endif
+EXPORT_SYMBOL_GPL(get_net_ns_by_fd);
struct net *get_net_ns_by_pid(pid_t pid)
{
OpenPOWER on IntegriCloud