[Devel] Re: [PATCH][NETNS] Make ifindex generation per-namespace
Eric W. Biederman
ebiederm at xmission.com
Wed Oct 10 12:51:50 PDT 2007
Johannes Berg <johannes at sipsolutions.net> writes:
> On Tue, 2007-10-09 at 11:41 -0600, Eric W. Biederman wrote:
>
>> So please hold off on this until the kernel has been audited and
>> we have removed all of the uses of ifindex that assume ifindex is
>> global, that we can find.
>
> I certainly have this assumption in the wireless code (cfg80211). How
> would I go about removing it? Are netlink sockets per-namespace so I can
> use the namespace of the netlink socket to look up a netdev?
Yes. Netlink sockets are per-namespace and you can use the namespace
of a netlink socket to look up a netdev.
Eric
More information about the Devel
mailing list