ROHC compression/decompression library
Data Fields
rohc_comp Struct Reference

The ROHC compressor. More...

#include <rohc_comp_internals.h>

Collaboration diagram for rohc_comp:
Collaboration graph
[legend]

Data Fields

int enabled
 Whether the compressor is enabled or not.
struct medium medium
struct c_contextcontexts
int num_contexts
int num_contexts_used
int profiles [C_NUM_PROFILES]
 Which profiles are enabled and with one are not?
unsigned char crc_table_2 [256]
unsigned char crc_table_3 [256]
unsigned char crc_table_6 [256]
unsigned char crc_table_7 [256]
unsigned char crc_table_8 [256]
struct rohc_feedback feedbacks [FEEDBACK_RING_SIZE]
size_t feedbacks_first
size_t feedbacks_first_unlocked
size_t feedbacks_next
 The index of the next empty location in the feedback ring.
int num_packets
int total_uncompressed_size
int total_compressed_size
struct c_contextlast_context
rohc_comp_random_cb_t random_cb
void * random_cb_ctxt
size_t wlsb_window_width
size_t periodic_refreshes_ir_timeout
size_t periodic_refreshes_fo_timeout
int mrru
int max_header_size
int connection_type

Detailed Description

The ROHC compressor.


Field Documentation

The connection type (currently not used)

The array of compression contexts that use the compressor

Referenced by rohc_c_context().

unsigned char rohc_comp::crc_table_2[256]

The table to enable fast CRC-2 computation

Referenced by rohc_alloc_compressor().

unsigned char rohc_comp::crc_table_3[256]

The table to enable fast CRC-3 computation

Referenced by code_UO0_packet(), code_UO1_packet(), and rohc_alloc_compressor().

unsigned char rohc_comp::crc_table_6[256]

The table to enable fast CRC-6 computation

Referenced by code_UO2_packet(), and rohc_alloc_compressor().

unsigned char rohc_comp::crc_table_7[256]

The table to enable fast CRC-7 computation

Referenced by code_UO2_packet(), and rohc_alloc_compressor().

unsigned char rohc_comp::crc_table_8[256]

The table to enable fast CRC-8 computation

Referenced by c_generic_feedback(), code_IR_DYN_packet(), code_IR_packet(), and rohc_alloc_compressor().

Whether the compressor is enabled or not.

The compressor is enabled by default and may be disabled by user.

Referenced by rohc_alloc_compressor(), rohc_c_is_enabled(), rohc_c_set_enable(), and rohc_c_statistics().

The ring of outgoing feedbacks

Referenced by c_piggyback_feedback(), and rohc_alloc_compressor().

The index of the oldest feedback in the feedback ring

Referenced by c_piggyback_feedback(), and rohc_alloc_compressor().

The index of the oldest unlocked feedback in the feedback ring

Referenced by rohc_alloc_compressor().

The index of the next empty location in the feedback ring.

Referenced by c_piggyback_feedback(), and rohc_alloc_compressor().

The last context used by the compressor

Referenced by rohc_alloc_compressor(), rohc_comp_get_last_packet_info(), and rohc_compress().

Maximum header size that will be compressed (currently not used)

Referenced by rohc_c_set_header().

Maximum Reconstructed Reception Unit (currently not used)

Referenced by rohc_alloc_compressor(), rohc_c_set_mrru(), and rohc_c_statistics().

The number of compression contexts stored in the array

Referenced by rohc_c_context().

The number of compression contexts in use in the array

Referenced by rohc_c_statistics(), and rohc_compress().

The maximal number of packets sent in > FO states (= SO state) before changing back the state to FO (periodic refreshes)

Referenced by periodic_down_transition(), and rohc_comp_set_periodic_refreshes().

The maximal number of packets sent in > IR states (= FO and SO states) before changing back the state to IR (periodic refreshes)

Referenced by periodic_down_transition(), and rohc_comp_set_periodic_refreshes().

Which profiles are enabled and with one are not?

A value of 1 means that profile is enabled, 0 means disabled.

Referenced by rohc_activate_profile(), rohc_alloc_compressor(), and rohc_c_statistics().

The user-defined callback for random numbers

Referenced by c_udp_create(), c_udp_lite_create(), rohc_alloc_compressor(), and rohc_comp_set_random_cb().

Private data that will be given to the callback for random numbers

Referenced by c_udp_create(), c_udp_lite_create(), rohc_alloc_compressor(), and rohc_comp_set_random_cb().

The size of all the sent compressed ROHC packets

Referenced by rohc_alloc_compressor(), rohc_c_statistics(), and rohc_compress().

The size of all the received uncompressed IP packets

Referenced by rohc_alloc_compressor(), rohc_c_statistics(), and rohc_compress().

The width of the W-LSB sliding window

Referenced by c_generic_create(), c_generic_encode(), c_rtp_create(), and rohc_comp_set_wlsb_window_width().


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