summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_mroute.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-09-27 03:26:43 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-12-22 02:26:10 +0100
commit9a5aa7429f48ae47c035541a387af752c8ec6d09 (patch)
treeda3e47298a81aa62ddcd4ed19eee5a2c226d8373 /zebra/zebra_mroute.c
parentlib, pimd: Modify writen to retry on certain failures (diff)
downloadfrr-9a5aa7429f48ae47c035541a387af752c8ec6d09.tar.xz
frr-9a5aa7429f48ae47c035541a387af752c8ec6d09.zip
pimd,zebra: Pass back error message if received
When zebra asks for mroute information let pim know that the request failed or succeeded. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_mroute.c')
-rw-r--r--zebra/zebra_mroute.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/zebra/zebra_mroute.c b/zebra/zebra_mroute.c
index 8dddb4e50..d05c90670 100644
--- a/zebra/zebra_mroute.c
+++ b/zebra/zebra_mroute.c
@@ -37,6 +37,7 @@ zebra_ipmr_route_stats (struct zserv *client, int fd, u_short length, struct zeb
{
struct mcast_route_data mroute;
struct stream *s;
+ int suc;
char sbuf[40];
char gbuf[40];
@@ -49,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));
- netlink_get_ipmr_sg_stats (&mroute);
+ suc = netlink_get_ipmr_sg_stats (&mroute);
s = client->obuf;
@@ -59,6 +60,7 @@ zebra_ipmr_route_stats (struct zserv *client, int fd, u_short length, struct zeb
stream_put_in_addr (s, &mroute.sg.src);
stream_put_in_addr (s, &mroute.sg.grp);
stream_put (s, &mroute.lastused, sizeof (mroute.lastused));
+ stream_putl (s, suc);
stream_putw_at (s, 0, stream_get_endp (s));
zebra_server_send_message (client);