Re: namespace support requires network modules to say "GPL"

From: Eric W. Biederman
Date: Tue Dec 04 2007 - 15:11:39 EST


Ben Greear <greearb@xxxxxxxxxxxxxxx> writes:

> Ok, but can a netdev at least know what namespace it is in? I don't
> need this for my module, but it seems very useful knowledge...

Sure. dev->nd_net
It is a don't care not a don't know, and there should be device
events when it goes in and out of a network namespace.

I don't know if the device gets those or not.

Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/