ipv6: Remove hoplimit initialization to -1
authorThomas Egerer <thomas.egerer@secunet.com>
Wed, 20 Apr 2011 22:56:02 +0000 (22:56 +0000)
committerSteve Conklin <sconklin@canonical.com>
Fri, 15 Jul 2011 17:20:56 +0000 (12:20 -0500)
commitd68dea42af9af2e812c6b099b3f723df3801bb5e
tree242c70f676e22dcfea0e8458fa142a7272f5e1e1
parent214c889ef231aa3b3c29a8cbda6783ddfc064b47
ipv6: Remove hoplimit initialization to -1

BugLink: http://bugs.launchpad.net/bugs/793702

[ Upstream commit e965c05dabdabb85af0187952ccd75e43995c4b3 ]

The changes introduced with git-commit a02e4b7d ("ipv6: Demark default
hoplimit as zero.") missed to remove the hoplimit initialization. As a
result, ipv6_get_mtu interprets the return value of dst_metric_raw
(-1) as 255 and answers ping6 with this hoplimit.  This patche removes
the line such that ping6 is answered with the hoplimit value
configured via sysctl.

Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
net/ipv6/route.c