Re: Network link detection

From: Stephen Hemminger
Date: Thu Mar 03 2011 - 17:07:55 EST


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


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