ROHC compression/decompression library
|
The information collected about the packet headers. More...
#include <uncomp_pkt_hdrs.h>
Data Fields | |
uint8_t | ip_hdrs_nr |
struct rohc_pkt_ip_hdr | ip_hdrs [ROHC_MAX_IP_HDRS] |
const struct rohc_pkt_ip_hdr * | innermost_ip_hdr |
union { | |
struct { | |
const struct tcphdr * tcp | |
struct { | |
uint8_t nr | |
uint8_t tot_len | |
const uint8_t * data [ROHC_TCP_OPTS_MAX] | |
uint8_t types [ROHC_TCP_OPTS_MAX] | |
uint8_t lengths [ROHC_TCP_OPTS_MAX] | |
} tcp_opts | |
} | |
const struct udphdr * udp | |
const struct esphdr * esp | |
const uint8_t * transport | |
}; | |
const struct rtphdr * | rtp |
uint16_t | all_hdrs_len |
const uint8_t * | all_hdrs |
uint16_t | payload_len |
const uint8_t * | payload |
The information collected about the packet headers.
The information about the packet headers is collected while the best profile is detected, and that information may be later used while the best context is detected or while changes with the compression context are detected.
The collection of information avoids parsing the packet headers several times.
union { ... } |
const uint8_t* rohc_pkt_hdrs::all_hdrs |
All raw headers
uint16_t rohc_pkt_hdrs::all_hdrs_len |
The cumulated length of all headers
const uint8_t* rohc_pkt_hdrs::data[ROHC_TCP_OPTS_MAX] |
const struct esphdr* rohc_pkt_hdrs::esp |
The ESP header (if any)
const struct rohc_pkt_ip_hdr* rohc_pkt_hdrs::innermost_ip_hdr |
The innermost IP header
struct rohc_pkt_ip_hdr rohc_pkt_hdrs::ip_hdrs[ROHC_MAX_IP_HDRS] |
The IP headers
uint8_t rohc_pkt_hdrs::ip_hdrs_nr |
The number of IP headers
uint8_t rohc_pkt_hdrs::lengths[ROHC_TCP_OPTS_MAX] |
uint8_t rohc_pkt_hdrs::nr |
const uint8_t* rohc_pkt_hdrs::payload |
The packet payload
uint16_t rohc_pkt_hdrs::payload_len |
The length of the packet payload
const struct rtphdr* rohc_pkt_hdrs::rtp |
The RTP header (if any)
const struct tcphdr* rohc_pkt_hdrs::tcp |
The TCP header (if any)
struct { ... } rohc_pkt_hdrs::tcp_opts |
uint8_t rohc_pkt_hdrs::tot_len |
const uint8_t* rohc_pkt_hdrs::transport |
The transport header (if any)
uint8_t rohc_pkt_hdrs::types[ROHC_TCP_OPTS_MAX] |
const struct udphdr* rohc_pkt_hdrs::udp |
The UDP header (if any)