udplite: Protection against coverage value wrap-around
commit5844cdf899519b1d9eff33fea3a9fe6d06f6d0b5
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Thu, 24 Jul 2008 07:11:56 +0000 (24 00:11 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Aug 2008 19:42:57 +0000 (1 12:42 -0700)
tree86cc80014d004300f708fa50172f956a55e5f90c
parenta51ea045643d14c24aebc817e54c61ebd53c35f9
udplite: Protection against coverage value wrap-around

[ Upstream commit 47112e25da41d9059626033986dc3353e101f815 ]

This patch clamps the cscov setsockopt values to a maximum of 0xFFFF.

Setsockopt values greater than 0xffff can cause an unwanted
wrap-around.  Further, IPv6 jumbograms are not supported (RFC 3838,
3.5), so that values greater than 0xffff are not even useful.

Further changes: fixed a typo in the documentation.

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Documentation/networking/udplite.txt
net/ipv4/udp.c