summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_nexthop.h
diff options
context:
space:
mode:
authorvivek <vivek@cumulusnetworks.com>2018-04-05 19:42:27 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-04-25 18:39:16 +0200
commit77e62f2b5ab1797c066488aa280652527cceadf7 (patch)
tree1a5e5cb626d26789b0f09cf72ec0adbbff7fb767 /bgpd/bgp_nexthop.h
parentbgpd: Fix route-leak/L3VPN delete of redistributed routes (diff)
downloadfrr-77e62f2b5ab1797c066488aa280652527cceadf7.tar.xz
frr-77e62f2b5ab1797c066488aa280652527cceadf7.zip
bgpd: Handle connected routes and IPv6 link-local nexthops for route leaking
Connected routes redistributed into BGP as well as IPv4 routes with IPv6 link-local next hops (RFC 5549) need information about the associated interface in BGP if they are candidates to be leaked into another VRF. In the absence of route leaking, this was not necessary. Introduce the appropriate mechanism and ensure this is used during route install (in the target VRF). Ticket: CM-20343, CM-20382 Testing done: 1. Manually verified failed scenarios and some additional ones - logs in the tickets. 2. Ran bgp-min and evpn-min - results are good. 3. Ran vrf smoke - has some failures, but none which look new Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_nexthop.h')
-rw-r--r--bgpd/bgp_nexthop.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_nexthop.h b/bgpd/bgp_nexthop.h
index 519f09276..a771bead2 100644
--- a/bgpd/bgp_nexthop.h
+++ b/bgpd/bgp_nexthop.h
@@ -29,6 +29,7 @@
(((nexthop_len) == 4 || (nexthop_len) == 12 \
? AF_INET \
: ((nexthop_len) == 16 || (nexthop_len) == 24 \
+ || (nexthop_len) == 32 \
|| (nexthop_len) == 48 \
? AF_INET6 \
: AF_UNSPEC)))