summaryrefslogtreecommitdiff
path: root/zebra/zserv.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-09-14 19:17:54 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-12-21 20:26:09 -0500
commitd4a2bc11adc87fb6dc7d460080d65fde017a964f (patch)
tree74b93ad1e22dd90edb8de1ea9bb0dcea672e9e8f /zebra/zserv.c
parent7b2c4d167e1b6ac3e8391f2492cfadc756126542 (diff)
pimd, zebra: Pass the ifindex for NEXTHOP_TYPE_IPV4
NEXTHOP_TYPE_IPV4 has the ifindex of the route. Pass it along so the other side can use it if it is needed. This will make pim much happier in that we will need to do less recursive lookups. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zserv.c')
-rw-r--r--zebra/zserv.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/zebra/zserv.c b/zebra/zserv.c
index 44e29a8bb0..bdfa03e1ee 100644
--- a/zebra/zserv.c
+++ b/zebra/zserv.c
@@ -786,8 +786,6 @@ zsend_write_nexthop (struct stream *s, struct nexthop *nexthop)
switch (nexthop->type)
{
case NEXTHOP_TYPE_IPV4:
- stream_put_in_addr (s, &nexthop->gate.ipv4);
- break;
case NEXTHOP_TYPE_IPV4_IFINDEX:
stream_put_in_addr (s, &nexthop->gate.ipv4);
stream_putl (s, nexthop->ifindex);