From 6e37ef5a6c33d674a87bc54f1920cd4b484cc0a7 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Thu, 4 Sep 2014 09:15:37 +0300 Subject: [PATCH] net: tcp: advance sequence number after our SYN is acked --- net/tcp.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/net/tcp.hh b/net/tcp.hh index 5767fe2891..92ca4b0115 100644 --- a/net/tcp.hh +++ b/net/tcp.hh @@ -320,6 +320,7 @@ void tcp::tcb::input(tcp_hdr* th, packet p) { return; // FIXME: reset too? } if (!_local_syn_acked && th->ack > _snd.initial) { + _snd.unacknowledged = _snd.next = _snd.initial + 1; _local_syn_acked = true; _snd.wl2 = th->ack; }