]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: fix tcp header size miscalculation when window scale is unused
authorPhilip Love <love_phil@emc.com>
Wed, 27 Aug 2008 09:33:50 +0000 (02:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Aug 2008 09:33:50 +0000 (02:33 -0700)
commit10009b2d2fa0a54f1ed92f3f91ece17b84eef090
treed1af9ffefd6137a2972b203296ea3961282f5ae8
parent1374090560af9e799b5454281cf24fdcf0a16c41
tcp: fix tcp header size miscalculation when window scale is unused

The size of the TCP header is miscalculated when the window scale ends
up being 0. Additionally, this can be induced by sending a SYN to a
passive open port with a window scale option with value 0.

Signed-off-by: Philip Love <love_phil@emc.com>
Signed-off-by: Adam Langley <agl@imperialviolet.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c