[ovs-dev] [PATCH 1/3] netdev-linux: Make netdev_linux_notify_sock join RTNLGRP_IPV4_IFADDR and RTNLGRP_IPV6_IFADDR.

Alex Wang alexw at nicira.com
Tue Jul 28 06:48:43 UTC 2015


Thx for the comments,

Yeah, I think we need to be able to parse the
RTNLGRP_IPV4_IFADDR/RTNLGRP_IPV6_IFADDR messages.

I attempted to extend the rtnetlink-link module, and resent a new seres,

Thanks,
Alex Wang,

On Mon, Jul 27, 2015 at 3:04 PM, Ben Pfaff <blp at nicira.com> wrote:

> 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 <alexw at nicira.com>
>
> 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.
>



More information about the dev mailing list