]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipv6/ip6_output.c
[IPV6]: Optimize hop-limit determination.
[net-next-2.6.git] / net / ipv6 / ip6_output.c
index ed6482667a256f803df1f3dbd804158bf5b02792..2a4f08c8a02da9c233c6f6bfbf31829842086d48 100644 (file)
@@ -237,9 +237,7 @@ int ip6_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl,
        if (np)
                hlimit = np->hop_limit;
        if (hlimit < 0)
-               hlimit = dst_metric(dst, RTAX_HOPLIMIT);
-       if (hlimit < 0)
-               hlimit = ipv6_get_hoplimit(dst->dev);
+               hlimit = ip6_dst_hoplimit(dst);
 
        tclass = -1;
        if (np)