ROHC compression/decompression library
|
The ROHC compression profile. More...
#include <rohc_comp_internals.h>
Data Fields | |
const unsigned short | protocol |
The IP protocol ID used to find out which profile is able to compress an IP packet. | |
const unsigned short | id |
const char * | description |
int(* | create )(struct c_context *const context, const struct ip_packet *packet) |
The handler used to create the profile-specific part of the compression context. | |
void(* | destroy )(struct c_context *const context) |
The handler used to destroy the profile-specific part of the compression context. | |
bool(* | check_profile )(const struct rohc_comp *const comp, const struct ip_packet *const outer_ip, const struct ip_packet *const inner_ip, const uint8_t protocol, rohc_ctxt_key_t *const ctxt_key) |
The handler used to check whether an uncompressed IP packet fits the current profile or not. | |
bool(* | check_context )(const struct c_context *context, const struct ip_packet *packet) |
The handler used to check whether an uncompressed IP packet belongs to a context or not. | |
int(* | encode )(struct c_context *const context, const struct ip_packet *packet, const size_t packet_size, unsigned char *const dest, const size_t dest_size, rohc_packet_t *const packet_type, int *const payload_offset) |
The handler used to encode uncompressed IP packets. | |
bool(* | reinit_context )(struct c_context *const context) __attribute__((nonnull(1) |
The handler used to re-initialize a context. | |
bool(* | warn_unused_result ) |
void(* | feedback )(struct c_context *const context, const struct c_feedback *feedback) |
The handler used to warn the profile-specific part of the context about the arrival of feedback data. | |
bool(* | use_udp_port )(const struct c_context *const context, const unsigned int port) |
The handler used to detect if a UDP port is used by the profile. |
The ROHC compression profile.
The object defines a ROHC profile. Each field must be filled in for each new profile.
bool(* c_profile::check_context)(const struct c_context *context, const struct ip_packet *packet) |
The handler used to check whether an uncompressed IP packet belongs to a context or not.
bool(* c_profile::check_profile)(const struct rohc_comp *const comp, const struct ip_packet *const outer_ip, const struct ip_packet *const inner_ip, const uint8_t protocol, rohc_ctxt_key_t *const ctxt_key) |
The handler used to check whether an uncompressed IP packet fits the current profile or not.
int(* c_profile::create)(struct c_context *const context, const struct ip_packet *packet) |
The handler used to create the profile-specific part of the compression context.
const char* c_profile::description |
A string that describes the profile
Referenced by rohc_c_statistics(), and rohc_compress2().
void(* c_profile::destroy)(struct c_context *const context) |
The handler used to destroy the profile-specific part of the compression context.
Referenced by rohc_comp_remove_rtp_port(), and rohc_compress2().
int(* c_profile::encode)(struct c_context *const context, const struct ip_packet *packet, const size_t packet_size, unsigned char *const dest, const size_t dest_size, rohc_packet_t *const packet_type, int *const payload_offset) |
The handler used to encode uncompressed IP packets.
Referenced by rohc_compress2().
void(* c_profile::feedback)(struct c_context *const context, const struct c_feedback *feedback) |
The handler used to warn the profile-specific part of the context about the arrival of feedback data.
Referenced by c_deliver_feedback().
const unsigned short c_profile::id |
The profile ID as reserved by IANA
Referenced by c_generic_create(), c_generic_encode(), c_generic_feedback(), c_udp_check_context(), change_mode(), change_state(), code_EXT0_packet(), code_EXT1_packet(), code_EXT2_packet(), code_EXT3_packet(), code_ipv6_dynamic_part(), code_IR_DYN_packet(), code_IR_packet(), code_UO1_packet(), code_UO2_packet(), code_UOR2_bytes(), code_UOR2_ID_bytes(), code_UOR2_RTP_bytes(), code_UOR2_TS_bytes(), decide_extension(), periodic_down_transition(), rohc_c_statistics(), rohc_comp_get_last_packet_info2(), rohc_compress2(), and rtp_header_flags_and_fields().
const unsigned short c_profile::protocol |
The IP protocol ID used to find out which profile is able to compress an IP packet.
bool(* c_profile::reinit_context)(struct c_context *const context) __attribute__((nonnull(1) |
The handler used to re-initialize a context.
Referenced by rohc_comp_force_contexts_reinit().
bool(* c_profile::use_udp_port)(const struct c_context *const context, const unsigned int port) |
The handler used to detect if a UDP port is used by the profile.
Referenced by rohc_comp_remove_rtp_port().
bool(* c_profile::warn_unused_result) |