X-Git-Url: https://git.sommitrealweird.co.uk/quagga-debian.git/blobdiff_plain/6d99eb2938e976229cb50d848a1bc491532b54f9..refs/heads/master:/bgpd/bgp_nht.c?ds=inline diff --git a/bgpd/bgp_nht.c b/bgpd/bgp_nht.c index 1158ab1..d734c20 100644 --- a/bgpd/bgp_nht.c +++ b/bgpd/bgp_nht.c @@ -409,8 +409,8 @@ make_prefix (int afi, struct bgp_info *ri, struct prefix *p) break; #ifdef HAVE_IPV6 case AFI_IP6: - if (ri->attr->extra->mp_nexthop_len != 16 - || IN6_IS_ADDR_LINKLOCAL (&ri->attr->extra->mp_nexthop_global)) + if (ri->attr->extra->mp_nexthop_len == 16 + && IN6_IS_ADDR_LINKLOCAL (&ri->attr->extra->mp_nexthop_global)) return -1; p->family = AF_INET6;