]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: check accept_ra for all nexthop interfaces of multipath routes v5.0.0-rc2
authorLaine Stump <laine@laine.org>
Tue, 8 Jan 2019 22:07:12 +0000 (17:07 -0500)
committerLaine Stump <laine@laine.org>
Fri, 11 Jan 2019 17:06:39 +0000 (12:06 -0500)
commitd40b820c5d3b0c9d5222844110881af66cdbb746
tree858c90c404f0a677158193f5fc8e2bde005fe949
parentf30ac207ad96a567ade0d8a49023ade9233b2b72
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 <laine@laine.org>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/util/virnetdevip.c