From: Johannes Berg <johannes@sipsolutions.net>
To: Vadim Kochan <vadim4j@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [RFC iw next] phy: Allow set netns by fd
Date: Fri, 23 Jan 2015 16:34:27 +0100 [thread overview]
Message-ID: <1422027267.2728.39.camel@sipsolutions.net> (raw)
In-Reply-To: <1422026027-5806-1-git-send-email-vadim4j@gmail.com> (sfid-20150123_162433_668129_A5F1E60F)
On Fri, 2015-01-23 at 17:13 +0200, Vadim Kochan wrote:
> From: Vadim Kochan <vadim4j@gmail.com>
>
> 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 <nsname> | <pid>
>
> First iw tries to find given nsname from /var/run/netns
> or by absoute path (in case if nsname contains "/") and if
> it failed to open nsname file then iw uses given argument as <pid>.
Hmm. I think it'd be better to do something like
iw phy XXX set netns name <nsname>
That way there's no way it can be a valid PID.
Otherwise, if you happen to have a file in your local directory that's
the name of the PID you want, weird things happen.
> Also added missing NL80211 attributes before NL80211_CMD_SET_WIPHY_NETNS.
Please don't - I'll update nl80211.h by copying as needed.
johannes
next prev parent reply other threads:[~2015-01-23 15:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-23 15:13 [RFC iw next] phy: Allow set netns by fd Vadim Kochan
2015-01-23 15:34 ` Johannes Berg [this message]
2015-01-23 15:47 ` Vadim Kochan
2015-01-23 16:04 ` Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1422027267.2728.39.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=vadim4j@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).