net: Abstract RTAX_HOPLIMIT metric accesses behind helper.

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller
2010-12-12 21:35:57 -08:00
parent abbf46ae0e
commit 5170ae824d
8 changed files with 22 additions and 9 deletions

View File

@@ -130,7 +130,7 @@ static inline int ip_select_ttl(struct inet_sock *inet, struct dst_entry *dst)
int ttl = inet->uc_ttl;
if (ttl < 0)
ttl = dst_metric(dst, RTAX_HOPLIMIT);
ttl = dst_metric_hoplimit(dst);
return ttl;
}