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>
1 file changed
tree: d2dbc5958156c531545a17ec30c3ff0dab2e3b1d
  1. inarp.c
  2. Makefile