Re: Network link detection

From: Nico Schümann
Date: Fri Mar 04 2011 - 01:36:07 EST


On Thu, Mar 03, 2011 at 02:07:33PM -0800, Stephen Hemminger wrote:
> Simple answer is use netlink. That is what all real services use (NM, Quagga, ...)
> Netlink can be hard to parse, so I recommend using a wrapper library.
>
> Simplest example is the link-event example in libmnl
> http://www.netfilter.org/projects/libmnl/index.html

The link-event example does about what I plan to do - and it just
works. So that pointer was just right. Thank you!

Nico
--
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/