diff options
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r-- | net/ipv6/route.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 9b2d7bc7beda..d9405d1863b8 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -1104,7 +1104,7 @@ static int ipv6_get_mtu(struct net_device *dev) | |||
1104 | 1104 | ||
1105 | int ip6_dst_hoplimit(struct dst_entry *dst) | 1105 | int ip6_dst_hoplimit(struct dst_entry *dst) |
1106 | { | 1106 | { |
1107 | int hoplimit = dst_metric(dst, RTAX_HOPLIMIT); | 1107 | int hoplimit = dst_metric_raw(dst, RTAX_HOPLIMIT); |
1108 | if (hoplimit < 0) { | 1108 | if (hoplimit < 0) { |
1109 | struct net_device *dev = dst->dev; | 1109 | struct net_device *dev = dst->dev; |
1110 | struct inet6_dev *idev; | 1110 | struct inet6_dev *idev; |
@@ -1310,7 +1310,7 @@ install_route: | |||
1310 | } | 1310 | } |
1311 | } | 1311 | } |
1312 | 1312 | ||
1313 | if (dst_metric(&rt->dst, RTAX_HOPLIMIT) == 0) | 1313 | if (dst_metric_raw(&rt->dst, RTAX_HOPLIMIT) == 0) |
1314 | dst_metric_set(&rt->dst, RTAX_HOPLIMIT, -1); | 1314 | dst_metric_set(&rt->dst, RTAX_HOPLIMIT, -1); |
1315 | if (!dst_mtu(&rt->dst)) | 1315 | if (!dst_mtu(&rt->dst)) |
1316 | dst_metric_set(&rt->dst, RTAX_MTU, ipv6_get_mtu(dev)); | 1316 | dst_metric_set(&rt->dst, RTAX_MTU, ipv6_get_mtu(dev)); |