tcphdr Struct Reference


Detailed Description

TCP protocol header structure.

Definition at line 140 of file tcp.h.

Data Fields

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


Field Documentation

u_short tcphdr::th_sport

Source port.

Definition at line 141 of file tcp.h.

Referenced by NutTcpOutput().

u_short tcphdr::th_dport

Destination port.

Definition at line 142 of file tcp.h.

Referenced by NutTcpOutput().

u_long tcphdr::th_seq

Sequence number of first octet in this segment.

Definition at line 143 of file tcp.h.

Referenced by NutDumpTcpHeader(), and NutTcpOutput().

u_long tcphdr::th_ack

Expected sequence number of next octet.

Definition at line 144 of file tcp.h.

Referenced by NutDumpTcpHeader(), and NutTcpOutput().

u_char tcphdr::th_x2

Unused.

Definition at line 150 of file tcp.h.

Referenced by NutTcpOutput().

u_char tcphdr::th_off

Data offset.

Definition at line 150 of file tcp.h.

Referenced by NutTcpInput(), and NutTcpOutput().

u_char tcphdr::th_flags

Control flags.

Definition at line 157 of file tcp.h.

Referenced by NutDumpTcpHeader(), and NutTcpOutput().

u_short tcphdr::th_win

Number of acceptable octects.

Definition at line 158 of file tcp.h.

Referenced by NutTcpOutput().

u_short tcphdr::th_sum

96 byte pseudo header checksum.

Definition at line 159 of file tcp.h.

Referenced by NutTcpOutput().

u_short tcphdr::th_urp

Urgent data pointer.

Definition at line 160 of file tcp.h.

Referenced by NutTcpOutput().


The documentation for this struct was generated from the following file:
© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/