]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Only supply ifindex for a v6 nexthop if LL 1990/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 29 Mar 2018 15:43:49 +0000 (11:43 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 29 Mar 2018 15:48:43 +0000 (11:48 -0400)
commitd4f8783d9575c86b6ae829cb27ee6118895edd0c
tree7866f7f537d911c8c5c0f4bdd5844f629e55024f
parent615e608d76bd3e1acf1769c914142210ac88e3f7
bgpd: Only supply ifindex for a v6 nexthop if LL

BGP is calculating a v6 routes nexthop as the nexthop address
+ an ifindex.  The ifindex calculated comes from where we received
the route from as that we have to do this for LL addresses.

But a v6 address that is not a LL we do not need to provide
to zebra for nexthop resolution because a global address
by default can be looked up and resolved appropriately.

Modify the code so that we must have an ifindex for a v6 nexthop
if the address is LL, else don't pass the ifindex down to zebra.

Fixes: #1986
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_zebra.c