From 7a4732c12b5e2dddba1c546fb02264db54581547 Mon Sep 17 00:00:00 2001 From: Lou Berger Date: Wed, 18 Jan 2017 11:36:32 -0500 Subject: [PATCH] bgpd: fix typo in VPN next hop V6 test (Issue #71) On top of: bgpd: allow VPN next hop to be different AFI than NLRI next hop (Issue #71) Signed-off-by: Lou Berger --- bgpd/bgp_route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 023d1f8fdd..81516640bd 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -1437,7 +1437,7 @@ subgroup_announce_check (struct bgp_info *ri, struct update_subgroup *subgrp, #define NEXTHOP_IS_V6 (\ (safi != SAFI_ENCAP && safi != SAFI_MPLS_VPN &&\ (p->family == AF_INET6 || peer_cap_enhe(peer))) || \ - ((safi == SAFI_ENCAP || safi != SAFI_MPLS_VPN) &&\ + ((safi == SAFI_ENCAP || safi == SAFI_MPLS_VPN) &&\ attr->extra->mp_nexthop_len >= IPV6_MAX_BYTELEN)) /* IPv6/MP starts with 1 nexthop. The link-local address is passed only if -- 2.39.5