Just to clarify the 3 states....
You either start in TCP_SYN_SENT or TCP_SYN_RECV. If you started in TCP_SYN_RECV it means you got a connection request and you sent an ACK. At this point you are waiting for the return ACK in the three way handshake. If you are in the TCP_SYN_SENT it means you sent the connection request and your are waiting for the return ACK so you can send the final ACK. Once the three phase handshake is complete you go into TCP_ESTABLISHED.
|