public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH 0/2] tcp: Correct handling of first ACK (or SYN-ACK) packet
@ 2023-03-27  3:56 David Gibson
  2023-03-27  3:56 ` [PATCH 1/2] tcp: Clarify allowed state for tcp_data_from_tap() David Gibson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: David Gibson @ 2023-03-27  3:56 UTC (permalink / raw)
  To: Stefano Brivio, passt-dev; +Cc: David Gibson

We have a subtle problem in the handling of the very first ack-flagged
packet (either the SYN-ACK or ACK from the three way handshake).
Stefano has posted a couple of versions of a patch addressing this,
however I think this is a better approach.  From the TCP logical point
of view, that first ACK does advance the sequence number, and if we
treat it as doing so, then the logic we already had in
tcp_update_seqack_from_tap() is correct.

David Gibson (2):
  tcp: Clarify allowed state for tcp_data_from_tap()
  tcp: Don't special case the handling of the ack of a syn

 tcp.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-03-27  9:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-27  3:56 [PATCH 0/2] tcp: Correct handling of first ACK (or SYN-ACK) packet David Gibson
2023-03-27  3:56 ` [PATCH 1/2] tcp: Clarify allowed state for tcp_data_from_tap() David Gibson
2023-03-27  3:56 ` [PATCH 2/2] tcp: Don't special case the handling of the ack of a syn David Gibson
2023-03-27  9:15 ` [PATCH 0/2] tcp: Correct handling of first ACK (or SYN-ACK) packet Stefano Brivio

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).