net: Abstract dst->neighbour accesses behind helpers.
[cascardo/linux.git] / net / ipv6 / addrconf.c
index 48cd03d..a06c53c 100644 (file)
@@ -656,7 +656,7 @@ ipv6_add_addr(struct inet6_dev *idev, const struct in6_addr *addr, int pfxlen,
         * layer address of our nexhop router
         */
 
-       if (rt->dst.neighbour == NULL)
+       if (dst_get_neighbour(&rt->dst) == NULL)
                ifa->flags &= ~IFA_F_OPTIMISTIC;
 
        ifa->idev = idev;