diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-01-18 04:01:36 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-01-18 04:01:36 +0100 |
commit | 1498c0593a75a6beabafbb8ed2b19a9c11bee250 (patch) | |
tree | 6c2fc7f7726c22180b838c142cdf7826207162f6 /zebra/zebra_mroute.c | |
parent | zebra: Fix compiles for non-linux based systems (diff) | |
download | frr-1498c0593a75a6beabafbb8ed2b19a9c11bee250.tar.xz frr-1498c0593a75a6beabafbb8ed2b19a9c11bee250.zip |
zebra: Allow the collection of sg stats on more platforms.
The code to collect the sg stats was written for linux.
Abstract the call to allow it to work on all platforms.
I have not implemented the call for non-linux systems.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_mroute.c')
-rw-r--r-- | zebra/zebra_mroute.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_mroute.c b/zebra/zebra_mroute.c index d05c90670..86356104b 100644 --- a/zebra/zebra_mroute.c +++ b/zebra/zebra_mroute.c @@ -30,7 +30,7 @@ #include "zebra/zserv.h" #include "zebra/zebra_vrf.h" #include "zebra/zebra_mroute.h" -#include "zebra/rt_netlink.h" +#include "zebra/rt.h" int zebra_ipmr_route_stats (struct zserv *client, int fd, u_short length, struct zebra_vrf *zvrf) @@ -50,7 +50,7 @@ zebra_ipmr_route_stats (struct zserv *client, int fd, u_short length, struct zeb strcpy (sbuf, inet_ntoa (mroute.sg.src)); strcpy (gbuf, inet_ntoa (mroute.sg.grp)); - suc = netlink_get_ipmr_sg_stats (&mroute); + suc = kernel_get_ipmr_sg_stats (&mroute); s = client->obuf; |