diff options
author | David S. Miller <davem@davemloft.net> | 2010-12-13 08:14:46 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-13 08:14:46 +0300 |
commit | abbf46ae0e4954584eac599bec73502c1c805e9e (patch) | |
tree | b35fd216dd6cd6d45662d1d6dbe761864bf300de /net/ipv6/netfilter/ip6t_REJECT.c | |
parent | 1635953305694ece16d99078ca6d32f3d4e7eb36 (diff) | |
download | linux-abbf46ae0e4954584eac599bec73502c1c805e9e.tar.xz |
ipv6: Use ip6_dst_hoplimit() instead of direct dst_metric() calls.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/netfilter/ip6t_REJECT.c')
-rw-r--r-- | net/ipv6/netfilter/ip6t_REJECT.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/netfilter/ip6t_REJECT.c b/net/ipv6/netfilter/ip6t_REJECT.c index 2933396e0281..bf998feac14e 100644 --- a/net/ipv6/netfilter/ip6t_REJECT.c +++ b/net/ipv6/netfilter/ip6t_REJECT.c @@ -124,7 +124,7 @@ static void send_reset(struct net *net, struct sk_buff *oldskb) skb_reset_network_header(nskb); ip6h = ipv6_hdr(nskb); ip6h->version = 6; - ip6h->hop_limit = dst_metric(dst, RTAX_HOPLIMIT); + ip6h->hop_limit = ip6_dst_hoplimit(dst); ip6h->nexthdr = IPPROTO_TCP; ipv6_addr_copy(&ip6h->saddr, &oip6h->daddr); ipv6_addr_copy(&ip6h->daddr, &oip6h->saddr); |