netdev/uevent
Quoted 2 lines · Thomas Ogrisegg
What do you mean with "ethtool and netlink"? At least the current release of ethtool does not seem to have any netlink support.
You can listen to RTMGRP_LINK on NETLINK_ROUTE. IFF_RUNNING will give you the link state information you're looking for.
For you application scenario: I'm working on a DHCP client that uses this netlink information, so don't invent the wheel twice ;-)
Stefan