net: Abstract dst->neighbour accesses behind helpers.
[deliverable/linux.git] / net / ipv6 / ndisc.c
index a997d414f525e8dbf10d6b29b6b3e0918b61b427..9da6e02eaaebffdb47949ff0c0fbf43dc1b9a208 100644 (file)
@@ -1238,7 +1238,7 @@ static void ndisc_router_discovery(struct sk_buff *skb)
        rt = rt6_get_dflt_router(&ipv6_hdr(skb)->saddr, skb->dev);
 
        if (rt)
-               neigh = rt->dst.neighbour;
+               neigh = dst_get_neighbour(&rt->dst);
 
        if (rt && lifetime == 0) {
                neigh_clone(neigh);
@@ -1259,7 +1259,7 @@ static void ndisc_router_discovery(struct sk_buff *skb)
                        return;
                }
 
-               neigh = rt->dst.neighbour;
+               neigh = dst_get_neighbour(&rt->dst);
                if (neigh == NULL) {
                        ND_PRINTK0(KERN_ERR
                                   "ICMPv6 RA: %s() got default router without neighbour.\n",
This page took 0.040331 seconds and 5 git commands to generate.