]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: fix wrong use of IN6_IS_ADDR_LINKLOCAL
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 4 Aug 2016 13:07:29 +0000 (10:07 -0300)
committerDonald Sharp <sharpd@cumulusnetwroks.com>
Mon, 8 Aug 2016 01:05:26 +0000 (21:05 -0400)
The IN6_IS_ADDR_LINKLOCAL macro expects to receive a pointer to an
in6_addr structure.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
bgpd/bgp_zebra.c

index b4bac840e3755d5ed1d4b61484465edf129a18e7..874d80bd8e66aa33b9c0b2e5e9f292f7fbd5fba3 100644 (file)
@@ -877,7 +877,7 @@ if_lookup_by_ipv6 (struct in6_addr *addr, unsigned int ifindex, vrf_id_t vrf_id)
          if (cp->family == AF_INET6)
            if (prefix_match (cp, (struct prefix *)&p))
              {
-               if (IN6_IS_ADDR_LINKLOCAL(&cp->u.prefix6.s6_addr32[0]))
+               if (IN6_IS_ADDR_LINKLOCAL(&cp->u.prefix6))
                  {
                    if (ifindex == ifp->ifindex)
                      return ifp;