]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: IIF/OIF are not used in MR RTM_GETROUTE
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 6 Jul 2022 09:23:40 +0000 (11:23 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Wed, 6 Jul 2022 09:29:56 +0000 (11:29 +0200)
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>
zebra/rt_netlink.c

index 699b17c3eb4e59c020e1fd5b6e36873ebfeb2cf9..d3967f4cbc5ac24964ab7c2b341ab2ec7ec1bd18 100644 (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,