ROHC compression/decompression library
Functions
ROHC compressor/decompressor common API

Functions

static unsigned char static
unsigned char static unsigned
char static unsigned char
static unsigned char int 
crc_get_polynom (int type)
 Get the polynom for the given CRC type.
void crc_init_table (unsigned char *table, unsigned char poly)
 Initialize a CRC table given a 256-byte table and the polynom to use.
char * rohc_version (void)
 Get the version of the ROHC library.
const char * rohc_get_mode_descr (const rohc_mode mode)
 Give a description for the given ROHC mode.
const char * rohc_get_packet_descr (const rohc_packet_t packet_type)
 Give a description for the given type of ROHC packet.
const char * rohc_get_ext_descr (const rohc_ext_t ext_type)
 Give a description for the given type of ROHC extension.

Function Documentation

static unsigned char static unsigned char static unsigned char static unsigned char static unsigned char int crc_get_polynom ( int  type)

Get the polynom for the given CRC type.

Public functions

Deprecated:
please do not use crc_get_polynom anymore, simply remove it from your code
Parameters:
typeThe CRC type
Returns:
The polynom for the requested CRC type
void crc_init_table ( unsigned char *  table,
unsigned char  poly 
)

Initialize a CRC table given a 256-byte table and the polynom to use.

Deprecated:
please do not use crc_init_table anymore, simply remove it from your code
Parameters:
tableThe 256-byte table
polyThe polynom
const char* rohc_get_ext_descr ( const rohc_ext_t  ext_type)

Give a description for the given type of ROHC extension.

The descriptions are not part of the API. They may change between releases without any warning. Do NOT use them for other means that providing to users a textual description of the extensions used by the library. If unsure, ask on the mailing list.

Parameters:
ext_typeThe type of extension to get a description for
Returns:
A string that describes the given extension type

References PACKET_EXT_0, PACKET_EXT_1, PACKET_EXT_2, PACKET_EXT_3, PACKET_EXT_UNKNOWN, and PACKET_NOEXT.

Referenced by code_UO2_packet().

const char* rohc_get_mode_descr ( const rohc_mode  mode)

Give a description for the given ROHC mode.

The descriptions are not part of the API. They may change between releases without any warning. Do NOT use them for other means that providing to users a textual description of modes used by the library. If unsure, ask on the mailing list.

Parameters:
modeThe ROHC mode to get a description for
Returns:
A string that describes the given ROHC mode

References O_MODE, R_MODE, and U_MODE.

Referenced by rohc_c_context(), and rohc_d_context().

const char* rohc_get_packet_descr ( const rohc_packet_t  packet_type)

Give a description for the given type of ROHC packet.

The descriptions are not part of the API. They may change between releases without any warning. Do NOT use them for other means that providing to users a textual description of the packets used by the library. If unsure, ask on the mailing list.

Parameters:
packet_typeThe type of packet to get a description for
Returns:
A string that describes the given packet type

References PACKET_CCE, PACKET_CCE_OFF, PACKET_IR, PACKET_IR_DYN, PACKET_NORMAL, PACKET_UNKNOWN, PACKET_UO_0, PACKET_UO_1, PACKET_UO_1_ID, PACKET_UO_1_RTP, PACKET_UO_1_TS, PACKET_UOR_2, PACKET_UOR_2_ID, PACKET_UOR_2_RTP, and PACKET_UOR_2_TS.

Referenced by d_generic_decode().

char* rohc_version ( void  )

Get the version of the ROHC library.

Returns:
the version of the library