summaryrefslogtreecommitdiffstats
path: root/net/ipv4/route.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-12-13 06:35:57 +0100
committerDavid S. Miller <davem@davemloft.net>2010-12-13 06:35:57 +0100
commit5170ae824ddf1988a63fb12cbedcff817634c444 (patch)
tree9f1619ca6edd0e8078bfcd9d6123e119b935e43b /net/ipv4/route.c
parentipv6: Use ip6_dst_hoplimit() instead of direct dst_metric() calls. (diff)
downloadlinux-5170ae824ddf1988a63fb12cbedcff817634c444.tar.xz
linux-5170ae824ddf1988a63fb12cbedcff817634c444.zip
net: Abstract RTAX_HOPLIMIT metric accesses behind helper.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r--net/ipv4/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 26ac396eaa5e..90b5a37555ab 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -1821,7 +1821,7 @@ static void rt_set_nexthop(struct rtable *rt, struct fib_result *res, u32 itag)
} else
dst_metric_set(dst, RTAX_MTU, dst->dev->mtu);
- if (dst_metric(dst, RTAX_HOPLIMIT) == 0)
+ if (dst_metric_raw(dst, RTAX_HOPLIMIT) == 0)
dst_metric_set(dst, RTAX_HOPLIMIT, sysctl_ip_default_ttl);
if (dst_mtu(dst) > IP_MAX_MTU)
dst_metric_set(dst, RTAX_MTU, IP_MAX_MTU);