ROHC compression/decompression library
Public Attributes
c_profile Struct Reference

The ROHC compression profile. More...

#include <rohc_comp.h>

List of all members.

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.

Detailed Description

The ROHC compression profile.

The object defines a ROHC profile. Each field must be filled in for each new profile.


Member Data Documentation

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

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

A string that describes the version of the implementation.

Referenced by rohc_c_statistics().


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