ipv6: Add rt6_get_cookie() function
[deliverable/linux.git] / include / net / ip6_route.h
index 784ee3d01dbf5adad590c1baf82faf96d7632bac..297629aadb190d4cfcdec41c241efa2b0db76a71 100644 (file)
@@ -145,7 +145,7 @@ static inline void __ip6_dst_store(struct sock *sk, struct dst_entry *dst,
 #ifdef CONFIG_IPV6_SUBTREES
        np->saddr_cache = saddr;
 #endif
-       np->dst_cookie = rt->rt6i_node ? rt->rt6i_node->fn_sernum : 0;
+       np->dst_cookie = rt6_get_cookie(rt);
 }
 
 static inline void ip6_dst_store(struct sock *sk, struct dst_entry *dst,
This page took 0.023864 seconds and 5 git commands to generate.