]> git.baikalelectronics.ru Git - kernel.git/commit
udplite: Protection against coverage value wrap-around
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Mon, 21 Jul 2008 20:35:08 +0000 (13:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jul 2008 20:35:08 +0000 (13:35 -0700)
commit73901c9895998f251de4eb2d3922e13cec323ea8
tree72857968c318960ba50a4cc7232041228e8361dc
parent9e72525f911e94b570ac46dfe8626453c2b192dd
udplite: Protection against coverage value wrap-around

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>
Documentation/networking/udplite.txt
net/ipv4/udp.c