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

The pseudo header used for TCP checksum calculation. More...

#include <tcp.h>

Public Attributes

uint32_t src_ip
 The IP address of the sender.
 
uint32_t dst_ip
 The IP address of the receiver.
 
uint16_t protocol
 The protocol (set to 6 for TCP)
 
uint16_t total_length
 The total length of the TCP header and data.
 

Detailed Description

The pseudo header used for TCP checksum calculation.

The pseudo header is used to calculate the checksum of the TCP header. It is a copy of the IP header, but with the protocol field set to 6 (TCP) and the length field set to the length of the TCP header.

Definition at line 94 of file tcp.h.

Member Data Documentation

◆ dst_ip

uint32_t MaxOS::net::TCPPseudoHeader::dst_ip

The IP address of the receiver.

Definition at line 97 of file tcp.h.

◆ protocol

uint16_t MaxOS::net::TCPPseudoHeader::protocol

The protocol (set to 6 for TCP)

Definition at line 98 of file tcp.h.

◆ src_ip

uint32_t MaxOS::net::TCPPseudoHeader::src_ip

The IP address of the sender.

Definition at line 96 of file tcp.h.

◆ total_length

uint16_t MaxOS::net::TCPPseudoHeader::total_length

The total length of the TCP header and data.

Definition at line 99 of file tcp.h.


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