]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: fix typo in VPN next hop V6 test (Issue #71) 83/head
authorLou Berger <lberger@labn.net>
Wed, 18 Jan 2017 16:36:32 +0000 (11:36 -0500)
committerLou Berger <lberger@labn.net>
Wed, 18 Jan 2017 16:36:32 +0000 (11:36 -0500)
      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>
bgpd/bgp_route.c

index 023d1f8fdd1f38b460f177fadfbf08904b5a89f0..81516640bdcf20c6adf9c5c039b3197be8954860 100644 (file)
@@ -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