]> git.ipfire.org Git - thirdparty/iw.git/commit
phy: Allow set netns by fd
authorVadim Kochan <vadim4j@gmail.com>
Sat, 14 Feb 2015 07:33:12 +0000 (09:33 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 3 Mar 2015 08:47:44 +0000 (09:47 +0100)
commit91454b655808e6721aa7425744632bbe943edc27
tree1f2e6314e033ee4a2b6a1aa4544617a34697b838
parenta67b2d9c5c66335cea95b31a24799da6e8da9134
phy: Allow set netns by fd

Added possibility to change network namespace
for phy device by network namespace name from
/var/run/netns or by absolute file path:

iw phy XXX set netns name <nsname>

iw tries to open fd of given nsname from /var/run/netns
or by absoute path if nsname contains "/".

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
phy.c