commit | ae153687f9dc3c82e7364653570c3406d8417e6f | [log] [tgz] |
---|---|---|
author | Jeremy Kerr <jk@ozlabs.org> | Mon Mar 14 16:59:19 2016 +0800 |
committer | Jeremy Kerr <jk@ozlabs.org> | Mon Mar 14 16:59:19 2016 +0800 |
tree | d2dbc5958156c531545a17ec30c3ff0dab2e3b1d | |
parent | 84963a80b3a1fe66a8612571fec66414116a019e [diff] |
Use netlink for link state queries Rather than do a once-off query for interfaces at boot, we should be using netlink to query for initial link states, and listen for link update & deletion events. This change adds functionality to receive RTM_NEWLINK and RTM_DELLINK messages, and updates the interfaces array using that. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>