netdev-linux: Make netdev_linux_notify_sock join RTNLGRP_IPV4_IFADDR
authorAlex Wang <alexw@nicira.com>
Tue, 28 Jul 2015 06:43:27 +0000 (23:43 -0700)
committerAlex Wang <alexw@nicira.com>
Tue, 28 Jul 2015 16:27:09 +0000 (09:27 -0700)
commitd6384a3a20cc6b5f164d660ecee998e198cdd099
treef846318ee8e1c05563337ce743a341ab9670a139
parent7e9dcc0f9930cd86e9cfc88ec892de01f37adb1b
netdev-linux: Make netdev_linux_notify_sock join RTNLGRP_IPV4_IFADDR
and RTNLGRP_IPV6_IFADDR.

Currently the netdev_linux_notify_sock only joins multicast group
RTNLGRP_LINK for link status change notification.  Some ovs features
also require the detection of ip addresses changes and update of the
netdev-linux's cache.  To achieve this, we need to make
netdev_linux_notify_sock join the multicast group RTNLGRP_IPV4_IFADDR
and RTNLGRP_IPV6_IFADDR.

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/netdev-linux.c