]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipv6: Set default hoplimit as zero.
authorLi RongQing <roy.qing.li@gmail.com>
Wed, 24 Oct 2012 06:01:18 +0000 (14:01 +0800)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 16 Nov 2012 16:47:16 +0000 (16:47 +0000)
commit379e38f89ef5e17a048482c900af4acb3afb86ef
tree2946112f68d089138daf7a804ee1cae02817a3ce
parente8c9f482ed9dc59f3747a065e497854ddd174e60
ipv6: Set default hoplimit as zero.

[ Upstream commit 14edd87dc67311556f1254a8f29cf4dd6cb5b7d1 ]

Commit a02e4b7dae4551(Demark default hoplimit as zero) only changes the
hoplimit checking condition and default value in ip6_dst_hoplimit, not
zeros all hoplimit default value.

Keep the zeroing ip6_template_metrics[RTAX_HOPLIMIT - 1] to force it as
const, cause as a37e6e344910(net: force dst_default_metrics to const
section)

Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/ipv6/route.c