From: David Lamparter Date: Wed, 6 Jul 2022 09:23:40 +0000 (+0200) Subject: zebra: IIF/OIF are not used in MR RTM_GETROUTE X-Git-Tag: base_8.4~260^2~2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=c6a89c8ef583cc44984d6a57c976cf217d0a7583;p=matthieu%2Ffrr.git 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 --- diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index 699b17c3eb..d3967f4cbc 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -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,