]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Remove hoplimit initialization to -1
authorThomas Egerer <thomas.egerer@secunet.com>
Wed, 20 Apr 2011 22:56:02 +0000 (22:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Apr 2011 00:24:08 +0000 (17:24 -0700)
commitec28eb3ed7d7113b1e746ad60207daf5eb361f96
tree10923ab7f6e5aaae3e432218d6492e07a7f83981
parent400b2c03c970ec062d5daaf031302c0f6da5f059
ipv6: Remove hoplimit initialization to -1

The changes introduced with git-commit 59b4f18e ("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>
net/ipv6/route.c