netlink: fix IPv6 RA flag retrieval
authorDan Williams <dcbw@redhat.com>
Tue, 20 Apr 2010 23:46:08 +0000 (16:46 -0700)
committerDan Williams <dcbw@redhat.com>
Tue, 20 Apr 2010 23:46:08 +0000 (16:46 -0700)
commit5b8b9fc608f28d22ceb91d9a8b6cd8a5bd2c805a
tree2accb8c52c84b0429f3c946a8cdaba32ebf7474c
parent9476355be2cd2e5c7554f3a403403da82fe02696
netlink: fix IPv6 RA flag retrieval

The RA flags aren't in the link flags, they are in the special
PROTINFO flags that the IPv6 stack sends.  To get these, because
libnl doesn't have native support for them, we get to parse the
netlink messages directly.  Furthermore, the PROTINFO message
isn't sent unless it's explicitly requested with a
RTM_GETLINK/AF_INET6 message, meaning we get to poll for it
periodically.

So switch over to the netlink monitor object (killing a lot of
duplicate code) and start requesting the PROTINFO bits from
netlink.
src/ip6-manager/Makefile.am
src/ip6-manager/nm-ip6-manager.c
src/ip6-manager/nm-netlink-listener.c [deleted file]
src/ip6-manager/nm-netlink-listener.h [deleted file]
src/nm-netlink-monitor.c
src/nm-netlink-monitor.h