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

Public Attributes | |
| 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 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, int index) |
| the handler used to get the extension in the IP packet | |
| int(* | get_index_table )(const struct ip_packet ip, int index) |
| the handler used to get the index in based table for the corresponding item | |
| int(* | get_size )(unsigned char *ext) |
| the handler used to get the size of an extension | |
| int(* | compare )(unsigned char *ext, struct list_comp *comp, int size, int index_table) |
| the handler used to compare two extension of the same type | |
| void(* | create_item )(unsigned char *ext, int index_table, int size, struct list_comp *comp) |
| the handler used to create the item with the corresponding type of the extension | |
| void(* | free_table )(struct list_comp *comp) |
| the handler used to free the based table element | |
The list compressor.
| struct item list_comp::based_table[MAX_ITEM] |
The compression based table.
Referenced by c_create_current_list(), create_ipv6_item(), ip6_c_init_table(), and ipv6_compare().
| int(* list_comp::compare)(unsigned char *ext, struct list_comp *comp, int size, 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_algo_list_compress(), c_create_current_list(), and c_init_header_info().
| void(* list_comp::create_item)(unsigned char *ext, int index_table, int size, struct list_comp *comp) |
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 |
The current list.
Referenced by c_algo_list_compress(), c_create_current_list(), c_generic_destroy(), c_init_header_info(), code_ipv6_dynamic_part(), decide_type(), encode_list(), encode_type_0(), encode_type_1(), encode_type_2(), and encode_type_3().
| void(* list_comp::free_table)(struct list_comp *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, int index) |
the handler used to get the extension in the IP packet
Referenced by c_algo_list_compress(), and c_init_header_info().
| int(* list_comp::get_index_table)(const struct ip_packet ip, int index) |
the handler used to get the index in based table for the corresponding item
Referenced by c_algo_list_compress(), and c_init_header_info().
| int(* list_comp::get_size)(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 c_algo_list_compress(), code_ipv6_dynamic_part(), and encode_list().
Boolean which equals to 1 if the list change.
Referenced by c_init_header_info(), code_ipv6_dynamic_part(), decide_packet(), and encode_list().
| struct c_list* list_comp::ref_list |
The reference list.
Referenced by c_algo_list_compress(), c_generic_destroy(), c_init_header_info(), code_ipv6_dynamic_part(), decide_type(), encode_list(), encode_type_1(), encode_type_2(), and encode_type_3().
The translation table.
Referenced by c_algo_list_compress(), c_create_current_list(), decide_type(), encode_type_0(), encode_type_1(), encode_type_3(), and ip6_c_init_table().
Boolean which equals to 1 if the update is done, 0 else.
Referenced by c_algo_list_compress(), c_init_header_info(), code_ipv6_dynamic_part(), and decide_packet().
1.7.6.1