#include <net/packet.h>
Go to the source code of this file.
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_MAGIC_VALUE 0x11227788 |
Packet integrity check magic value. | |
#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. | |
Functions | |
static int | packet_is_valid (const packet_t *packet) |
Returns whether the packet is valid. |
Definition in file packet_header.h.