util: check accept_ra for all nexthop interfaces of multipath routes
util: check accept_ra for all nexthop interfaces of multipath routes

When checking the setting of accept_ra, we have assumed that all
routes have a single nexthop, so the interface of the route would be
in the RTA_OIF attribute of the netlink RTM_NEWROUTE message. But
multipath routes don't have an RTA_OIF; instead, they have an
RTA_MULTIPATH attribute, which is an array of rtnexthop, with each
rtnexthop having an interface. This patch adds a loop to look at the
setting of accept_ra of the interface for every rtnexthop in the
array.

Signed-off-by: Laine Stump <c23361c43fbf79fed83e8b76173707b083d6caf5@laine.org>
Reviewed-by: Erik Skultety <2c14d38fa47c8799f1b9c16280abe27f8edfec6e@redhat.com>

crobinso/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,zippy2/libvirt,crobinso/libvirt,nertpinx/libvirt,zippy2/libvirt,jfehlig/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,eskultety/libvirt,eskultety/libvirt,nertpinx/libvirt,eskultety/libvirt,olafhering/libvirt,nertpinx/libvirt,andreabolognani/libvirt,jardasgit/libvirt,olafhering/libvirt,jfehlig/libvirt,olafhering/libvirt,andreabolognani/libvirt,zippy2/libvirt,jardasgit/libvirt,eskultety/libvirt,jfehlig/libvirt,jardasgit/libvirt,jfehlig/libvirt,fabianfreyer/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,libvirt/libvirt,zippy2/libvirt,andreabolognani/libvirt,libvirt/libvirt,olafhering/libvirt,libvirt/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,eskultety/libvirt,crobinso/libvirt,crobinso/libvirt,nertpinx/libvirt,libvirt/libvirt,jardasgit/libvirt