ROHC compression/decompression library
Data Fields
ip_packet Struct Reference

Defines an IP-agnostic packet that can handle an IPv4 or IPv6 packet. More...

#include <ip.h>

Collaboration diagram for ip_packet:
Collaboration graph
[legend]

Data Fields

ip_version version
 The version of the IP packet.
union {
   struct ipv4_hdr   v4
 The IPv4 header.
   struct ipv6_hdr   v6
 The IPv6 header.
header
 The IP header.
const uint8_t * data
 The whole IP data (header + payload) if not NULL.
size_t size
 The length (in bytes) of the whole IP data (header + payload)
struct net_hdr nh
struct net_hdr nl

Detailed Description

Defines an IP-agnostic packet that can handle an IPv4 or IPv6 packet.


Field Documentation

const uint8_t* ip_packet::data

The whole IP data (header + payload) if not NULL.

union { ... } ip_packet::header

The IP header.

The next header (extension headers included)

The next layer (extension headers excluded)

The length (in bytes) of the whole IP data (header + payload)

The IPv4 header.

The IPv6 header.

The version of the IP packet.


The documentation for this struct was generated from the following file: