Vojtech Pavlik wrote:
>
> On Mon, Nov 26, 2001 at 12:55:57PM -0500, Jeff Garzik wrote:
>
> > There is already two ways to report link state to userspace. We do not
> > need a third.
> >
> > First, ETHTOOL_GLINK. Second, netif_carrier_off causes IFF_RUNNING to
> > disappear when the interface is up.
>
> That's from the ethernet point of view. But if I understand correctly,
> there is no means for the userspace to be notified of a link state
> *change*.
Userspace can be notified if you poll ETHTOOL_GLINK.
If you want notification immediately upon state change, netlink is the
way to do this. That is the plan for 2.5, but it has not been
implemented yet. Patches welcome.
--
Jeff Garzik | Only so many songs can be sung
Building 1024 | with two lips, two lungs, and one tongue.
MandrakeSoft | - nomeansno
|