summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_nht.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-03-06 14:16:43 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-03-06 14:40:41 +0100
commita18ed03f9b9d7546c7f8149e6e769d635a077708 (patch)
treec00b60d7f78809dea4670bd1857bc8f3754d1852 /bgpd/bgp_nht.c
parentMerge pull request #230 from qlyoung/remove-quagga_clkid (diff)
downloadfrr-a18ed03f9b9d7546c7f8149e6e769d635a077708.tar.xz
frr-a18ed03f9b9d7546c7f8149e6e769d635a077708.zip
bgpd, zebra: Add ifindex to NEXTHOP_TYPE_IPV4
When passing up NEXTHOP_TYPE_IPV4 pass up the ifindex as well Zebra already stores this data by passing it up PIM will be able to use NEXTHOP_TYPE_IPV4 without having to do a recursive lookup. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Don Slice <dslice@cumulusnetworks.com> Reviewed-by: Chirag Shah <chirag@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_nht.c')
-rw-r--r--bgpd/bgp_nht.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_nht.c b/bgpd/bgp_nht.c
index e1204f55a..6bc69f654 100644
--- a/bgpd/bgp_nht.c
+++ b/bgpd/bgp_nht.c
@@ -432,6 +432,7 @@ bgp_parse_nexthop_update (int command, vrf_id_t vrf_id)
{
case NEXTHOP_TYPE_IPV4:
nexthop->gate.ipv4.s_addr = stream_get_ipv4 (s);
+ nexthop->ifindex = stream_getl (s);
break;
case NEXTHOP_TYPE_IFINDEX:
nexthop->ifindex = stream_getl (s);