netfilter: nf_conntrack: fix ICMP/ICMPv6 timeout sysctls on big-endian
commitc2ef76b4adfbb9439e0d9abad8903404f1e884c3
authorPatrick McHardy <kaber@trash.net>
Mon, 19 Jan 2009 14:19:39 +0000 (19 15:19 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 25 Jan 2009 00:41:45 +0000 (24 16:41 -0800)
tree7a3deb002b0f4741db05d0fa4383937d49c25793
parent7c339b03453255c1544fc9785588a559efdcbad5
netfilter: nf_conntrack: fix ICMP/ICMPv6 timeout sysctls on big-endian

Upstream commit 71320af:

An old bug crept back into the ICMP/ICMPv6 conntrack protocols: the timeout
values are defined as unsigned longs, the sysctl's maxsize is set to
sizeof(unsigned int). Use unsigned int for the timeout values as in the
other conntrack protocols.

Reported-by: Jean-Mickael Guerin <jean-mickael.guerin@6wind.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/netfilter/nf_conntrack_proto_icmp.c
net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c