I am running a TCP client under Qemu, specifically using the implementation from the mps2 demo. As an echo server I am running ncat on a different linux machine.
The problem that I am facing is that the client is not recognizing the SYN ACK messages from the server, thus it continuously tries to initiate a connection, I am attaching the output from wireshark.
By stepping through the code, I saw that xProcessReceivedTCPPacket is only called from the client before sending an RST,ACK.
Also, I couldn’t find prvTCPHandleState being called, even though I compiled with DEBUG=1.
Is there something further I can check to understand why the client is not processing the SYN,ACK messages?
While debugging, I noticed that from the client side, the connections get the following states: