ecsnet
Loading...
Searching...
No Matches
packet_header_t Struct Reference

The header of a network packet. Contains metadata about the packet, such as its size and type. Note on padding: The size is 2 bytes and the enum type is 4 bytes, which results in 2 bytes of padding to align the struct to an 8-byte boundary. More...

#include <protocol_handler.h>

Public Attributes

uint16_t size
packet_type_t type

Detailed Description

The header of a network packet. Contains metadata about the packet, such as its size and type. Note on padding: The size is 2 bytes and the enum type is 4 bytes, which results in 2 bytes of padding to align the struct to an 8-byte boundary.

Member Data Documentation

◆ size

uint16_t packet_header_t::size

The total size of the packet in bytes.

◆ type

packet_type_t packet_header_t::type

The type of the packet.


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