Max OS 0.3
Loading...
Searching...
No Matches
MaxOS::net::TCPHeader Struct Reference

The header of a TCP packet. More...

#include <tcp.h>

Public Attributes

uint16_t src_port
 The port of the sender.
 
uint16_t dst_port
 The port of the receiver.
 
uint32_t sequence_number
 Where this packet's data fits in the overall order of the data stream.
 
uint32_t acknowledgement_number
 The next expected sequence number from the sender (used by the receiver to request the next data)
 
uint8_t reserved: 4
 Unused, must be 0.
 
uint8_t header_size_32: 4
 The size of the header in 32-bit words.
 
uint8_t flags
 The flags of the TCP packet (see TCPFlag enum)
 
uint16_t window_size
 How many bytes the sender is willing to receive.
 
uint16_t checksum
 The checksum of the header.
 
uint16_t urgent_ptr
 Where in the data the urgent data ends (if the URG flag is set)
 
uint32_t options
 The options for the TCP packet (MSS, Window Scale, SACK Permitted)
 

Detailed Description

The header of a TCP packet.

Definition at line 65 of file tcp.h.

Member Data Documentation

◆ acknowledgement_number

uint32_t MaxOS::net::TCPHeader::acknowledgement_number

The next expected sequence number from the sender (used by the receiver to request the next data)

Definition at line 70 of file tcp.h.

◆ checksum

uint16_t MaxOS::net::TCPHeader::checksum

The checksum of the header.

Definition at line 77 of file tcp.h.

◆ dst_port

uint16_t MaxOS::net::TCPHeader::dst_port

The port of the receiver.

Definition at line 68 of file tcp.h.

◆ flags

uint8_t MaxOS::net::TCPHeader::flags

The flags of the TCP packet (see TCPFlag enum)

Definition at line 74 of file tcp.h.

◆ header_size_32

uint8_t MaxOS::net::TCPHeader::header_size_32

The size of the header in 32-bit words.

Definition at line 73 of file tcp.h.

◆ options

uint32_t MaxOS::net::TCPHeader::options

The options for the TCP packet (MSS, Window Scale, SACK Permitted)

Todo:
: make this a struct

Definition at line 80 of file tcp.h.

◆ reserved

uint8_t MaxOS::net::TCPHeader::reserved

Unused, must be 0.

Definition at line 72 of file tcp.h.

◆ sequence_number

uint32_t MaxOS::net::TCPHeader::sequence_number

Where this packet's data fits in the overall order of the data stream.

Definition at line 69 of file tcp.h.

◆ src_port

uint16_t MaxOS::net::TCPHeader::src_port

The port of the sender.

Definition at line 67 of file tcp.h.

◆ urgent_ptr

uint16_t MaxOS::net::TCPHeader::urgent_ptr

Where in the data the urgent data ends (if the URG flag is set)

Definition at line 78 of file tcp.h.

◆ window_size

uint16_t MaxOS::net::TCPHeader::window_size

How many bytes the sender is willing to receive.

Definition at line 76 of file tcp.h.


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