On Fri, Jul 24, 2015 at 02:36:05PM -0700, Alex Wang wrote:
> 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 <[email protected]>

RTNLGRP_LINK messages start with struct ifinfomsg, but
RTNLGRP_IPV4_IFADDR messages start with struct ifaddrmsg.  Both of these
structures have ifindex at the same offset (so I can see how this could
would at appear to work) but they have different sizes and different
attributes, so I don't think it's appropriate to parse both of them with
the same function.
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to