zebra: IIF/OIF are not used in MR RTM_GETROUTE

The multicast routing RTM_GETROUTE command does not use IIF/OIF
attributes, and the IPv6 version will refuse them with an error due to
being new netlink API and thus using strict validation.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
David Lamparter 2022-07-06 11:23:40 +02:00
parent 31071fe357
commit c6a89c8ef5

View File

@ -2349,9 +2349,6 @@ int kernel_get_ipmr_sg_stats(struct zebra_vrf *zvrf, void *in)
req.n.nlmsg_type = RTM_GETROUTE;
nl_attr_put32(&req.n, sizeof(req), RTA_IIF, mroute->ifindex);
nl_attr_put32(&req.n, sizeof(req), RTA_OIF, mroute->ifindex);
if (mroute->family == AF_INET) {
req.rtm.rtm_family = RTNL_FAMILY_IPMR;
nl_attr_put(&req.n, sizeof(req), RTA_SRC,