![]() |
Max OS 0.3
|
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. | |
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.
| uint32_t MaxOS::net::TCPPseudoHeader::dst_ip |
| uint16_t MaxOS::net::TCPPseudoHeader::protocol |
| uint32_t MaxOS::net::TCPPseudoHeader::src_ip |
| uint16_t MaxOS::net::TCPPseudoHeader::total_length |