summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2019-12-31 10:07:44 +0100
committerGitHub <noreply@github.com>2019-12-31 10:07:44 +0100
commit1f1bc0e4541dc58ac4dd200461f1e843dd4b1f3e (patch)
tree6d11ef6ef8a0026661d5830b07da8835aafb5642
parentMerge pull request #5596 from donaldsharp/md5_doc (diff)
parentbgpd: skip ra for blackhole nexthop type (diff)
downloadfrr-1f1bc0e4541dc58ac4dd200461f1e843dd4b1f3e.tar.xz
frr-1f1bc0e4541dc58ac4dd200461f1e843dd4b1f3e.zip
Merge pull request #5597 from chiragshah6/evpn_dev2
bgpd: skip ra for blackhole nexthop type
-rw-r--r--bgpd/bgp_nht.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/bgp_nht.c b/bgpd/bgp_nht.c
index 0969c8e77..a50fc7d69 100644
--- a/bgpd/bgp_nht.c
+++ b/bgpd/bgp_nht.c
@@ -421,7 +421,8 @@ void bgp_parse_nexthop_update(int command, vrf_id_t vrf_id)
if (peer && !peer->ifp
&& CHECK_FLAG(peer->flags,
PEER_FLAG_CAPABILITY_ENHE)
- && nhr.prefix.family == AF_INET6) {
+ && nhr.prefix.family == AF_INET6
+ && nexthop->type != NEXTHOP_TYPE_BLACKHOLE) {
struct interface *ifp;
ifp = if_lookup_by_index(nexthop->ifindex,