ROHC compression/decompression library
|
Defines an IP-agnostic packet that can handle an IPv4 or IPv6 packet. More...
#include <ip.h>
Data Fields | |
ip_version | version |
The version of the IP packet. More... | |
union { | |
struct ipv4_hdr v4 | |
The IPv4 header. More... | |
struct ipv6_hdr v6 | |
The IPv6 header. More... | |
} | header |
The IP header. More... | |
const uint8_t * | data |
The whole IP data (header + payload) if not NULL. More... | |
size_t | size |
The length (in bytes) of the whole IP data (header + payload) More... | |
struct net_hdr | nh |
struct net_hdr | nl |
Defines an IP-agnostic packet that can handle an IPv4 or IPv6 packet.
const uint8_t* ip_packet::data |
The whole IP data (header + payload) if not NULL.
union { ... } ip_packet::header |
The IP header.
struct net_hdr ip_packet::nh |
The next header (extension headers included)
struct net_hdr ip_packet::nl |
The next layer (extension headers excluded)
size_t ip_packet::size |
The length (in bytes) of the whole IP data (header + payload)
struct ipv4_hdr ip_packet::v4 |
The IPv4 header.
struct ipv6_hdr ip_packet::v6 |
The IPv6 header.
ip_version ip_packet::version |
The version of the IP packet.