From: Donald Sharp Date: Mon, 13 Mar 2017 01:05:13 +0000 (-0400) Subject: eigrpd: Correct route send to zebra X-Git-Tag: reindent-master-before~197^2~32 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=8e90a2de76f5b41db3ac4d541e42eef982411acd;p=mirror%2Ffrr.git eigrpd: Correct route send to zebra We were not passing the instance and were also passing a bogus distance? Signed-off-by: Donald Sharp --- diff --git a/eigrpd/eigrp_zebra.c b/eigrpd/eigrp_zebra.c index dd418c73ff..825470c854 100644 --- a/eigrpd/eigrp_zebra.c +++ b/eigrpd/eigrp_zebra.c @@ -431,6 +431,7 @@ eigrp_zebra_route_add (struct prefix_ipv4 *p, struct eigrp_neighbor_entry *te) /* Put command, type, flags, message. */ zclient_create_header (s, ZEBRA_IPV4_ROUTE_ADD, VRF_DEFAULT); stream_putc (s, ZEBRA_ROUTE_EIGRP); + stream_putw (s, 0); stream_putc (s, flags); stream_putc (s, message); stream_putw (s, SAFI_UNICAST); @@ -457,7 +458,7 @@ eigrp_zebra_route_add (struct prefix_ipv4 *p, struct eigrp_neighbor_entry *te) inet_ntop(AF_INET, 0 /*&p->nexthop*/, buf[1], sizeof (buf[1]))); } - stream_putl (s, te->distance); + //stream_putl (s, te->distance); stream_putw_at (s, 0, stream_get_endp (s)); zclient_send_message (zclient);