On Sat, Nov 24, 2001 at 05:47:04PM -0800, H. Peter Anvin wrote:
> > Hi
> > I was wondering if there was any way in linux to use what redmond calls
> > "Network Media Detection"?
> This is basically taking the interface down when the link disappears
> (and vice versa.) Rather useful for portable systems. Don't think
> anyone has implemented it, but it should be easy enough to do.
is there a common field in net_device{} for link state (not just up or
down, but media type too)?
all the various ethernet drivers seem to handle link changes rather
differently. being able to notify userspace of media changes in a
not-driver-specific manner would be nice as links flapping from 10 to
100Mbps and back often means problems are afoot.
also i am undecided on _how_ to tell userspace about it... the current
hotplug system only seems to handle plug/unplug, whereas this is a
device state change and as such doesn't really fit the mould...
j.
-- R N G G "Well, there it goes again... And we just sit I G G G here without opposable thumbs." -- gary larson - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Fri Nov 30 2001 - 21:00:18 EST