summaryrefslogtreecommitdiffstats
path: root/zebra/rt_netlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/rt_netlink.c')
-rw-r--r--zebra/rt_netlink.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c
index 73054594b..e4cf1a126 100644
--- a/zebra/rt_netlink.c
+++ b/zebra/rt_netlink.c
@@ -1525,8 +1525,7 @@ int kernel_get_ipmr_sg_stats(struct zebra_vrf *zvrf, void *in)
struct zebra_ns *zns = zvrf->zns;
mroute = mr;
- suc = netlink_request(RTNL_FAMILY_IPMR, RTM_GETROUTE,
- &zns->netlink_cmd);
+ suc = netlink_request_route(zns, RTNL_FAMILY_IPMR, RTM_GETROUTE);
if (suc < 0)
return suc;