1 From c27f8c1fe27db3f30f9c9313158007e5444c802a Mon Sep 17 00:00:00 2001
2 From: Thomas Egerer <thomas.egerer@secunet.com>
3 Date: Wed, 20 Apr 2011 22:56:02 +0000
4 Subject: ipv6: Remove hoplimit initialization to -1
7 From: Thomas Egerer <thomas.egerer@secunet.com>
9 [ Upstream commit e965c05dabdabb85af0187952ccd75e43995c4b3 ]
11 The changes introduced with git-commit a02e4b7d ("ipv6: Demark default
12 hoplimit as zero.") missed to remove the hoplimit initialization. As a
13 result, ipv6_get_mtu interprets the return value of dst_metric_raw
14 (-1) as 255 and answers ping6 with this hoplimit. This patche removes
15 the line such that ping6 is answered with the hoplimit value
16 configured via sysctl.
18 Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
19 Signed-off-by: David S. Miller <davem@davemloft.net>
20 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
22 net/ipv6/route.c | 1 -
23 1 file changed, 1 deletion(-)
25 --- a/net/ipv6/route.c
26 +++ b/net/ipv6/route.c
27 @@ -1970,7 +1970,6 @@ struct rt6_info *addrconf_dst_alloc(stru
28 rt->dst.output = ip6_output;
29 rt->rt6i_dev = net->loopback_dev;
31 - dst_metric_set(&rt->dst, RTAX_HOPLIMIT, -1);
32 rt->dst.obsolete = -1;
34 rt->rt6i_flags = RTF_UP | RTF_NONEXTHOP;