ROHC compression/decompression library
Data Fields
list_comp Struct Reference

The list compressor. More...

#include <c_generic.h>

Collaboration diagram for list_comp:
Collaboration graph
[legend]

Data Fields

struct c_listref_list
 The reference list.
struct c_listcurr_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

Detailed Description

The list compressor.


Field Documentation

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

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

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


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