Packet header. More...
#include "packet.h"
Data Structures | |
struct | packet |
Packet header. More... | |
Defines | |
#define | PACKET_DATA_LENGTH(header) ((header)->data_end - (header)->data_start) |
Returns the actual packet data length. | |
#define | PACKET_MAX_ADDRESS_LENGTH(header) ((header)->dest_addr - (header)->src_addr) |
Returns the maximum packet address length. | |
#define | PACKET_MIN_SUFFIX(header) ((header)->length - (header)->data_start - (header)->max_content) |
Returns the minimum packet suffix. | |
#define | PACKET_MAGIC_VALUE 0x11227788 |
Packet integrity check magic value. | |
Functions | |
static int | packet_is_valid (const packet_t packet) |
Returns whether the packet is valid. |
Packet header.