Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

tcp_frame Struct Reference


Detailed Description

This structure holds header fields from the received TCP packet.

In addition to standard header fields, buf_index field has been added allowing applications to re-read the received data many times by reinitializing reading based on the address stored in this field.

Definition at line 564 of file tcp_ip.h.

Data Fields

UINT16 sport
UINT16 dport
UINT32 seqno
UINT32 ackno
UINT16 hlen_flags
UINT16 window
UINT16 checksum
UINT16 urgent
UINT8 opt [MAX_TCP_OPTLEN+1]
UINT16 buf_index


Field Documentation

UINT16 tcp_frame::sport
 

Source port

Definition at line 566 of file tcp_ip.h.

Referenced by process_tcp_in(), tcp_mapsocket(), and tcp_sendreset().

UINT16 tcp_frame::dport
 

Destination port

Definition at line 567 of file tcp_ip.h.

Referenced by process_tcp_in(), tcp_mapsocket(), and tcp_sendreset().

UINT32 tcp_frame::seqno
 

Sequence number

Definition at line 568 of file tcp_ip.h.

Referenced by process_tcp_in(), and tcp_sendreset().

UINT32 tcp_frame::ackno
 

Acknowledgement number

Definition at line 569 of file tcp_ip.h.

Referenced by process_tcp_in(), and tcp_sendreset().

UINT16 tcp_frame::hlen_flags
 

Header length and flags

Definition at line 570 of file tcp_ip.h.

Referenced by process_tcp_in(), tcp_mapsocket(), and tcp_sendreset().

UINT16 tcp_frame::window
 

Size of window

Definition at line 571 of file tcp_ip.h.

Referenced by process_tcp_in().

UINT16 tcp_frame::checksum
 

TCP packet checksum

Definition at line 572 of file tcp_ip.h.

Referenced by process_tcp_in().

UINT16 tcp_frame::urgent
 

Urgent pointer

Definition at line 573 of file tcp_ip.h.

Referenced by process_tcp_in().

UINT8 tcp_frame::opt[MAX_TCP_OPTLEN + 1]
 

Option field

Definition at line 574 of file tcp_ip.h.

Referenced by process_tcp_in().

UINT16 tcp_frame::buf_index
 

Next offset from the start of network buffer

Definition at line 575 of file tcp_ip.h.

Referenced by process_tcp_in().


The documentation for this struct was generated from the following file:
Generated on Sun Aug 3 20:33:01 2003 for OpenTCP by doxygen1.2.18