next up previous contents
Next: tcp_ack() Up: TCP Input Previous: TCP Input

tcp_conn_request()

This function is called when a socket in the LISTEN state receives a SYN segment. This is an attempt by a client to initiate a connection with the server.

Our first change involves the waking up of the socket. A check is made to determine if the segment contains data. If it does, we leave the socket alone until we have all the data:

The next change occurs further on in the function. tcp_options() is called to find any options and set CC flags if T/TCP is being used. We now use these flags and the CC values to determine whether the TAO test passed or not (appendix A.2.4):



Mark Stacey
Thu Apr 30 12:26:11 IST 1998