ROHC compression/decompression library
|
The ROHC compression profile. More...
#include <rohc_comp.h>
Public Attributes | |
unsigned short | protocol |
The IP protocol ID used to find out which profile is able to compress an IP packet. | |
int * | ports |
The UDP ports associated with this profile Only used with UDP as transport protocol. The pointer can be NULL if no port is specified. If defined, the list must be terminated by 0. ex: { 5000, 5001, 0 }. | |
unsigned short | id |
The profile ID as reserved by IANA. | |
char * | version |
A string that describes the version of the implementation. | |
char * | description |
A string that describes the implementation (authors...) | |
int(* | create )(struct c_context *context, const struct ip_packet packet) |
The handler used to create the profile-specific part of the compression context. | |
void(* | destroy )(struct c_context *context) |
The handler used to destroy the profile-specific part of the compression context. | |
int(* | check_context )(struct c_context *context, 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 *context, const struct ip_packet packet, int packet_size, unsigned char *dest, int dest_size, int *payload_offset) |
The handler used to encode uncompressed IP packets. | |
void(* | feedback )(struct c_context *context, struct c_feedback *feedback) |
The handler used to warn the profile-specific part of the context about the arrival of feedback data. |
The ROHC compression profile.
The object defines a ROHC profile. Each field must be filled in for each new profile.
int(* c_profile::check_context)(struct c_context *context, struct ip_packet packet) |
The handler used to check whether an uncompressed IP packet belongs to a context or not.
Referenced by c_find_context().
int(* c_profile::create)(struct c_context *context, const struct ip_packet packet) |
The handler used to create the profile-specific part of the compression context.
Referenced by c_create_context().
char* c_profile::description |
A string that describes the implementation (authors...)
Referenced by c_get_profile_from_packet(), rohc_c_context(), rohc_c_statistics(), and rohc_compress().
void(* c_profile::destroy)(struct c_context *context) |
The handler used to destroy the profile-specific part of the compression context.
Referenced by c_create_context(), c_destroy_contexts(), and rohc_compress().
int(* c_profile::encode)(struct c_context *context, const struct ip_packet packet, int packet_size, unsigned char *dest, int dest_size, int *payload_offset) |
The handler used to encode uncompressed IP packets.
Referenced by rohc_compress().
void(* c_profile::feedback)(struct c_context *context, 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().
unsigned short c_profile::id |
The profile ID as reserved by IANA.
Referenced by c_assessment_size(), c_find_context(), c_generic_create(), c_generic_encode(), code_EXT3_packet(), code_IR_DYN_packet(), code_IR_packet(), code_UO1_packet(), code_UO2_packet(), decide_algo(), decide_extension(), decide_FO_packet(), decide_SO_packet(), rohc_c_statistics(), rohc_compress(), and update_variables().
int* c_profile::ports |
The UDP ports associated with this profile Only used with UDP as transport protocol. The pointer can be NULL if no port is specified. If defined, the list must be terminated by 0. ex: { 5000, 5001, 0 }.
Referenced by c_is_in_list().
unsigned short c_profile::protocol |
The IP protocol ID used to find out which profile is able to compress an IP packet.
char* c_profile::version |
A string that describes the version of the implementation.
Referenced by rohc_c_statistics().