Packet header. More...
#include <packet_header.h>
Data Fields | |
| packet_id_t | packet_id |
| Packet identifier. | |
| size_t | order |
| Packet queue sorting value. | |
| size_t | metric |
| Packet metric. | |
| packet_id_t | previous |
| Previous packet in the queue. | |
| packet_id_t | next |
| Next packet in the queue. | |
| size_t | length |
| Total length of the packet. | |
| size_t | addr_len |
| Stored source and destination addresses length. | |
| size_t | src_addr |
| Souce address offset in bytes from the beginning of the packet header. | |
| size_t | dest_addr |
| Destination address offset in bytes from the beginning of the packet header. | |
| size_t | max_prefix |
| Reserved data prefix length in bytes. | |
| size_t | max_content |
| Reserved content length in bytes. | |
| size_t | data_start |
| Actual data start offset in bytes from the beginning of the packet header. | |
| size_t | data_end |
| Actual data end offset in bytes from the beginning of the packet header. | |
| int | magic_value |
| Integrity check magic value. | |
Packet header.
| size_t packet::addr_len |
Stored source and destination addresses length.
| size_t packet::data_end |
Actual data end offset in bytes from the beginning of the packet header.
| size_t packet::data_start |
Actual data start offset in bytes from the beginning of the packet header.
| size_t packet::dest_addr |
Destination address offset in bytes from the beginning of the packet header.
| size_t packet::length |
Total length of the packet.
Contains the header, the addresses and the data of the packet. Corresponds to the mapped sharable memory block.
Referenced by icmp_echo(), icmp_process_client_messages(), icmp_process_packet(), packet_create(), packet_destroy(), packet_get(), packet_release(), and packet_reply().
Integrity check magic value.
Referenced by packet_create(), and packet_is_valid().
| size_t packet::max_content |
Reserved content length in bytes.
| size_t packet::max_prefix |
Reserved data prefix length in bytes.
| size_t packet::metric |
Packet metric.
Next packet in the queue.
Referenced by packet_get().
| size_t packet::order |
Packet queue sorting value.
The packet queue is sorted the ascending order.
Packet identifier.
Referenced by packet_create().
Previous packet in the queue.
| size_t packet::src_addr |
Souce address offset in bytes from the beginning of the packet header.
1.6.1