Synopsis
typedef struct {
  CTL_TCP_SEGMENT_s *next;
  size_t allocatedByteSize;
  size_t byteCount;
  unsigned long segStart;
  CTL_TIME_t timeStamp;
  unsigned long *freeExternalBuf;
  unsigned short sentCount;
  unsigned char flags;
  unsigned long data[];
} CTL_TCP_SEGMENT_t;
Description

CTL_TCP_SEGMENT_t describes a single TCP segment in a transmit or receive queue.

next
The next segment in the list; null indicates no further segments.
allocatedByteSize
The number of bytes allocated to segment payload data (in the data member).
byteCount
The number of valid payload bytes in the payload data. This will be less than or equal to allocatedByteSize.
segStart
The segment start sequence number.
timeStamp
The last ‘sent’ time for a transmit segment or ‘received’ time for a receive segment.
freeExternalBuf
Additional memory to free when the segment is itself freed. Only transmit frames set this to a non-null value.
sentCount
A count of the number of times this frame has been sent; this is only manipulated for segments in the send queue.