Tim Hockin wrote:
> 
> > >  I have a task to detect if the network
> > > cable is unplugged. If it is the case,
> > > I have to notify the user.
> > >
> > >  Can someone please help me in identifying few
> > > good ways to do (achieve) this programmatically?
> > > (preferably C function calls or ioctls, if any)
> 
> Actually, I've been asked that just this week.  This seems like the sort of
> thing that ethtool should report.
> 
> Perhaps another ethtool ioctl() for LINK status is needed?
> 
> (cc: to Jeff Garzik, ethtool maintainer)

we need netlink messages to proactively deliver link status to any
userspace (or kernelspace) listeners.

-- 
Jeff Garzik      | "Mind if I drive?" -Sam
Building 1024    | "Not if you don't mind me clawing at the dash
MandrakeSoft     |  and shrieking like a cheerleader." -Max



_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to