Nut/OS  4.10.3
API Reference
tcphdr Struct Reference

TCP protocol header structure. More...

#include <netinet/tcp.h>

Collaboration diagram for tcphdr:

Data Fields

uint16_t th_sport
 Source port.
uint16_t th_dport
 Destination port.
uint32_t th_seq
 Sequence number of first octet in this segment.
uint32_t th_ack
 Expected sequence number of next octet.
uint8_t th_x2:4
 Unused.
uint8_t th_off:4
 Data offset.
uint8_t th_flags
 Control flags.
uint16_t th_win
 Number of acceptable octects.
uint16_t th_sum
 96 byte pseudo header checksum.
uint16_t th_urp
 Urgent data pointer.

Detailed Description

TCP protocol header structure.

Definition at line 144 of file tcp.h.


Field Documentation

Source port.

Definition at line 145 of file tcp.h.

Referenced by NutTcpOutput(), and NutTcpSm().

Destination port.

Definition at line 146 of file tcp.h.

Referenced by NutTcpOutput(), and NutTcpSm().

Sequence number of first octet in this segment.

Definition at line 147 of file tcp.h.

Referenced by NutDumpTcpHeader(), and NutTcpOutput().

Expected sequence number of next octet.

Definition at line 148 of file tcp.h.

Referenced by NutDumpTcpHeader(), and NutTcpOutput().

Unused.

Definition at line 154 of file tcp.h.

Referenced by NutTcpOutput().

Data offset.

Definition at line 154 of file tcp.h.

Referenced by NutTcpInput(), and NutTcpOutput().

Control flags.

Definition at line 161 of file tcp.h.

Referenced by NutDumpTcpHeader(), and NutTcpOutput().

Number of acceptable octects.

Definition at line 162 of file tcp.h.

Referenced by NutTcpOutput().

96 byte pseudo header checksum.

Definition at line 163 of file tcp.h.

Referenced by NutTcpOutput().

Urgent data pointer.

Definition at line 164 of file tcp.h.

Referenced by NutTcpOutput().


The documentation for this struct was generated from the following file: