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:34:31 +0000 (09:34 -0700)
commit4bf22388f2ae29003291cada309e7ed31c2717e7
tree63e1353429b5ca8fa3f6dd7700371602f88aa0ca
parentb7320746c088629c6d63af3cb9b71e34861f87a1
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