|
ROHC compression/decompression library
|
The list compressor. More...
#include <c_generic.h>

Data Fields | |
| struct c_list * | ref_list |
| The reference list. | |
| struct c_list * | curr_list |
| The current list. | |
| int | counter |
| counter which indicates if ref_list is reference list | |
| struct rohc_list_item | based_table [MAX_ITEM] |
| The compression based table. | |
| struct c_translation | trans_table [MAX_ITEM] |
| The translation table. | |
| int | update_done |
| Boolean which equals to 1 if the update is done, 0 else. | |
| int | list_compress |
| Boolean which equals to 1 if the list change. | |
| int | islist |
| Boolean which equals to 1 if there is a list, 0 else. | |
| unsigned char *(* | get_extension )(const struct ip_packet *ip, const int index) |
| the handler used to get the extension in the IP packet | |
| int(* | get_index_table )(const struct ip_packet *ip, const int index) |
| the handler used to get the index in based table for the corresponding item | |
| unsigned short(* | get_size )(const unsigned char *ext) |
| the handler used to get the size of an extension | |
| int(* | compare )(const unsigned char *ext, const struct list_comp *comp, const int size, const int index_table) |
| the handler used to compare two extension of the same type | |
| void(* | create_item )(struct list_comp *const comp, const unsigned int index_table, const unsigned char *ext_data, const size_t ext_size) |
| the handler used to create the item with the corresponding type of the extension | |
| void(* | free_table )(struct list_comp *const comp) |
| the handler used to free the based table element | |
The list compressor.
The compression based table.
Referenced by c_create_current_list(), ip6_c_init_table(), and ipv6_compare().
| int(* list_comp::compare)(const unsigned char *ext, const struct list_comp *comp, const int size, const int index_table) |
the handler used to compare two extension of the same type
Referenced by c_create_current_list(), and c_init_header_info().
counter which indicates if ref_list is reference list
Referenced by c_create_current_list(), c_init_header_info(), and rohc_list_decide_ipv6_compression().
| void(* list_comp::create_item)(struct list_comp *const comp, const unsigned int index_table, const unsigned char *ext_data, const size_t ext_size) |
the handler used to create the item with the corresponding type of the extension
Referenced by c_create_current_list(), and c_init_header_info().
| struct c_list* list_comp::curr_list |
| void(* list_comp::free_table)(struct list_comp *const comp) |
the handler used to free the based table element
Referenced by c_init_header_info().
| unsigned char*(* list_comp::get_extension)(const struct ip_packet *ip, const int index) |
the handler used to get the extension in the IP packet
Referenced by c_init_header_info(), and rohc_list_decide_ipv6_compression().
| int(* list_comp::get_index_table)(const struct ip_packet *ip, const int index) |
the handler used to get the index in based table for the corresponding item
Referenced by c_init_header_info(), and rohc_list_decide_ipv6_compression().
| unsigned short(* list_comp::get_size)(const unsigned char *ext) |
the handler used to get the size of an extension
Referenced by c_create_current_list(), and c_init_header_info().
Boolean which equals to 1 if there is a list, 0 else.
Referenced by code_ipv6_dynamic_part(), rohc_list_decide_ipv6_compression(), and rohc_list_decide_type().
Boolean which equals to 1 if the list change.
Referenced by c_init_header_info(), code_ipv6_dynamic_part(), and rohc_list_decide_type().
| struct c_list* list_comp::ref_list |
The reference list.
Referenced by c_generic_destroy(), c_init_header_info(), code_ipv6_dynamic_part(), rohc_list_decide_ipv6_compression(), rohc_list_decide_type(), rohc_list_encode_type_1(), rohc_list_encode_type_2(), and rohc_list_encode_type_3().
The translation table.
Referenced by c_create_current_list(), ip6_c_init_table(), rohc_list_decide_ipv6_compression(), rohc_list_decide_type(), rohc_list_encode_type_0(), rohc_list_encode_type_1(), and rohc_list_encode_type_3().
Boolean which equals to 1 if the update is done, 0 else.
Referenced by c_init_header_info(), code_ipv6_dynamic_part(), and rohc_list_decide_ipv6_compression().
1.7.6.1