packet_header.h File Reference

Packet header. More...

#include "packet.h"
Include dependency graph for packet_header.h:
This graph shows which files directly or indirectly include 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_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.

Detailed Description

Packet header.


Generated on Thu Mar 11 20:46:16 2010 for Networking and TCP/IP stack for HelenOS system by  doxygen 1.6.1