summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_route.c
diff options
context:
space:
mode:
authorLou Berger <lberger@labn.net>2017-01-18 17:36:32 +0100
committerLou Berger <lberger@labn.net>2017-01-18 17:36:32 +0100
commit7a4732c12b5e2dddba1c546fb02264db54581547 (patch)
treec104292b9db2482f41a9eb9442c0582fd0d7b8e2 /bgpd/bgp_route.c
parentbgpd: use address-family <afi> <safi> in show running for vpn&encap (Issue #80) (diff)
downloadfrr-7a4732c12b5e2dddba1c546fb02264db54581547.tar.xz
frr-7a4732c12b5e2dddba1c546fb02264db54581547.zip
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 <lberger@labn.net>
Diffstat (limited to '')
-rw-r--r--bgpd/bgp_route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 023d1f8fd..81516640b 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