diff options
author | David S. Miller <davem@davemloft.net> | 2010-12-13 00:35:57 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-13 00:35:57 -0500 |
commit | 5170ae824ddf1988a63fb12cbedcff817634c444 (patch) | |
tree | 9f1619ca6edd0e8078bfcd9d6123e119b935e43b /net/ipv4/ip_gre.c | |
parent | abbf46ae0e4954584eac599bec73502c1c805e9e (diff) |
net: Abstract RTAX_HOPLIMIT metric accesses behind helper.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ip_gre.c')
-rw-r--r-- | net/ipv4/ip_gre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c index ff4e7a4e33ed..46eb3dc37ec6 100644 --- a/net/ipv4/ip_gre.c +++ b/net/ipv4/ip_gre.c | |||
@@ -890,7 +890,7 @@ static netdev_tx_t ipgre_tunnel_xmit(struct sk_buff *skb, struct net_device *dev | |||
890 | iph->ttl = ((struct ipv6hdr *)old_iph)->hop_limit; | 890 | iph->ttl = ((struct ipv6hdr *)old_iph)->hop_limit; |
891 | #endif | 891 | #endif |
892 | else | 892 | else |
893 | iph->ttl = dst_metric(&rt->dst, RTAX_HOPLIMIT); | 893 | iph->ttl = dst_metric_hoplimit(&rt->dst); |
894 | } | 894 | } |
895 | 895 | ||
896 | ((__be16 *)(iph + 1))[0] = tunnel->parms.o_flags; | 896 | ((__be16 *)(iph + 1))[0] = tunnel->parms.o_flags; |