From: Daniel Walton Date: Tue, 30 May 2017 15:02:34 +0000 (+0000) Subject: bgpd: resolve IPv6 LL and Global nexthop issue X-Git-Tag: reindent-master-before~102^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=f040db8f7ab0b4c49ea8f5ae781d1629e3db8723;p=matthieu%2Ffrr.git bgpd: resolve IPv6 LL and Global nexthop issue Signed-off-by: Daniel Walton --- diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 5c18483c9b..b3e1f8b27e 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -1455,7 +1455,7 @@ subgroup_announce_check (struct bgp_node *rn, struct bgp_info *ri, #define NEXTHOP_IS_V6 (\ (safi != SAFI_ENCAP && safi != SAFI_MPLS_VPN &&\ - (p->family == AF_INET6 || peer_cap_enhe(peer, AFI_IP6, safi))) || \ + (p->family == AF_INET6 || peer_cap_enhe(peer, afi, safi))) || \ ((safi == SAFI_ENCAP || safi == SAFI_MPLS_VPN) &&\ attr->extra->mp_nexthop_len >= IPV6_MAX_BYTELEN))