next up previous contents
Next: CC Options Up: Design and Implementation Previous: State Processing

 

TCP Control Block

A number of new variables have to be added to each TCP control block. These variables are used to record the CC values to send, and receive from the peer and the connection duration. The TF_REQ_CC flag is set when a new control block is initialised. Its value is non-zero if the tcp_do_rfc1644 flag is non-zero. The PRU_SEND_EOF flag is set when the MSG_EOF flag is used in the call to sendto(). They are declared in the file: /usr/src/linux/include/net/sock.h in the sock structure as follows:

The bit-field declarations reduce the size of the structure by 9 bytes.

These variables are initialised in the file: net/ipv4/af_inet.c in the inet_create() function. TF_REQ_CC is set to the value of the tcp_do_rfc1644, and the rest are set to zero.



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