]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[tcp] Record ts_recent on first received packet
authorMichael Brown <mcb30@ipxe.org>
Sat, 26 Mar 2011 14:58:17 +0000 (14:58 +0000)
committerMichael Brown <mcb30@ipxe.org>
Sat, 26 Mar 2011 15:02:41 +0000 (15:02 +0000)
commit3f442d3f601306f97d21a8716ea303ee053822d1
tree5f23b4bc7fb819d1613bd9d385e9bfcdc221bd8c
parent7c4a53e3f063a2bee4bdec44338fc3c5658f70af
[tcp] Record ts_recent on first received packet

Commit 6861304 ("[tcp] Handle out-of-order received packets")
introduced a regression in which ts_recent would not be updated until
the first packet is received in the ESTABLISHED state, i.e. the
timestamp from the SYN+ACK packet would be ignored.  This causes the
connection to be dropped by strictly-conforming TCP peers, such as
FreeBSD.

Fix by delaying the timestamp window check until after processing the
received SYN flag.

Reported-by: winders@sonnet.com
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/tcp.c