aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/raw.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/raw.c')
-rw-r--r--net/ipv6/raw.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c
index a9e4235157a2..548d0763f4d3 100644
--- a/net/ipv6/raw.c
+++ b/net/ipv6/raw.c
@@ -885,9 +885,7 @@ static int rawv6_sendmsg(struct kiocb *iocb, struct sock *sk,
885 else 885 else
886 hlimit = np->hop_limit; 886 hlimit = np->hop_limit;
887 if (hlimit < 0) 887 if (hlimit < 0)
888 hlimit = dst_metric(dst, RTAX_HOPLIMIT); 888 hlimit = ip6_dst_hoplimit(dst);
889 if (hlimit < 0)
890 hlimit = ipv6_get_hoplimit(dst->dev);
891 } 889 }
892 890
893 if (tclass < 0) { 891 if (tclass < 0) {