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 unsigned char * data
 The whole IP data (header + payload) if not NULL.
unsigned int size
 The length (in bytes) of the whole IP data (header + payload)

Detailed Description

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


Field Documentation

const unsigned char* ip_packet::data

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

Referenced by code_UO0_packet(), code_UO1_packet(), code_UO2_packet(), ip_create(), ip_get_next_header(), ip_get_protocol(), and ip_get_raw_data().

union { ... } ip_packet::header
unsigned int ip_packet::size

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

Referenced by c_generic_encode(), ip_create(), and ip_get_totlen().


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