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

tcp Struct Reference
[TCP (Transmition Control Protocol) layer]

TCP packet structure. More...

#include <tcp.h>


Data Fields

uint16_t tcp_src
 Source port.

uint16_t tcp_dst
 Destination port.

uint32_t tcp_seq_num
 Sequence number.

uint32_t tcp_ack_num
 ACK number.

uint8_t tcp_res1:4
 Reserved (bit 0..3).

uint8_t tcp_hdr_len:4
 Header length.

uint8_t tcp_fin:1
 FIN flag.

uint8_t tcp_syn:1
 SYN flag.

uint8_t tcp_rst:1
 RST flag.

uint8_t tcp_psh:1
 PSH flag.

uint8_t tcp_ack:1
 ACK flag.

uint8_t tcp_urg:1
 URG flag.

uint8_t tcp_res2:2
 Reserved (bit 4..6).

uint16_t tcp_win_size
 Window size.

uint16_t tcp_chk
 TCP checksum.

uint16_t tcp_urg_ptr
 Urgent pointer.


Detailed Description

TCP packet structure.

Definition at line 53 of file tcp.h.


Field Documentation

uint8_t tcp::tcp_ack
 

ACK flag.

Definition at line 79 of file tcp.h.

uint32_t tcp::tcp_ack_num
 

ACK number.

Definition at line 63 of file tcp.h.

uint16_t tcp::tcp_chk
 

TCP checksum.

Definition at line 105 of file tcp.h.

uint16_t tcp::tcp_dst
 

Destination port.

Definition at line 58 of file tcp.h.

uint8_t tcp::tcp_fin
 

FIN flag.

Definition at line 71 of file tcp.h.

uint8_t tcp::tcp_hdr_len
 

Header length.

Definition at line 69 of file tcp.h.

uint8_t tcp::tcp_psh
 

PSH flag.

Definition at line 77 of file tcp.h.

uint8_t tcp::tcp_res1
 

Reserved (bit 0..3).

Definition at line 67 of file tcp.h.

uint8_t tcp::tcp_res2
 

Reserved (bit 4..6).

Definition at line 83 of file tcp.h.

uint8_t tcp::tcp_rst
 

RST flag.

Definition at line 75 of file tcp.h.

uint32_t tcp::tcp_seq_num
 

Sequence number.

Definition at line 61 of file tcp.h.

uint16_t tcp::tcp_src
 

Source port.

Definition at line 56 of file tcp.h.

uint8_t tcp::tcp_syn
 

SYN flag.

Definition at line 73 of file tcp.h.

uint8_t tcp::tcp_urg
 

URG flag.

Definition at line 81 of file tcp.h.

uint16_t tcp::tcp_urg_ptr
 

Urgent pointer.

Definition at line 107 of file tcp.h.

uint16_t tcp::tcp_win_size
 

Window size.

Definition at line 103 of file tcp.h.


The documentation for this struct was generated from the following file:
Generated on Fri Feb 20 15:32:21 2004 for Minirighi by doxygen1.2.18