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. 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
 

Detailed Description

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

Field Documentation

◆ data

const uint8_t* ip_packet::data

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

◆ header

union { ... } ip_packet::header

The IP header.

◆ nh

struct net_hdr ip_packet::nh

The next header (extension headers included)

◆ nl

struct net_hdr ip_packet::nl

The next layer (extension headers excluded)

◆ size

size_t ip_packet::size

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

◆ v4

struct ipv4_hdr ip_packet::v4

The IPv4 header.

◆ v6

struct ipv6_hdr ip_packet::v6

The IPv6 header.

◆ version

ip_version ip_packet::version

The version of the IP packet.


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