ROHC compression/decompression library
Data Fields
tcphdr Struct Reference

The TCP base header without options. More...

#include <tcp.h>

Data Fields

uint16_t src_port
 
uint16_t dst_port
 
uint32_t seq_num
 
uint32_t ack_num
 
uint8_t res_flags:4
 
uint8_t data_offset:4
 
uint8_t rsf_flags:3
 
uint8_t psh_flag:1
 
uint8_t ack_flag:1
 
uint8_t urg_flag:1
 
uint8_t ecn_flags:2
 
uint16_t window
 
uint16_t checksum
 
uint16_t urg_ptr
 
uint8_t options [0]
 

Detailed Description

The TCP base header without options.

See RFC4996 page 72/73

Field Documentation

◆ ack_flag

uint8_t tcphdr::ack_flag

◆ ack_num

uint32_t tcphdr::ack_num

◆ checksum

uint16_t tcphdr::checksum

◆ data_offset

uint8_t tcphdr::data_offset

◆ dst_port

uint16_t tcphdr::dst_port

◆ ecn_flags

uint8_t tcphdr::ecn_flags

◆ options

uint8_t tcphdr::options[0]

The beginning of the TCP options

◆ psh_flag

uint8_t tcphdr::psh_flag

◆ res_flags

uint8_t tcphdr::res_flags

◆ rsf_flags

uint8_t tcphdr::rsf_flags

◆ seq_num

uint32_t tcphdr::seq_num

◆ src_port

uint16_t tcphdr::src_port

◆ urg_flag

uint8_t tcphdr::urg_flag

◆ urg_ptr

uint16_t tcphdr::urg_ptr

◆ window

uint16_t tcphdr::window

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