ROHC compression/decompression library
Public Attributes
list_comp Struct Reference

The list compressor. More...

#include <c_generic.h>

Collaboration diagram for list_comp:
Collaboration graph
[legend]

List of all members.

Public Attributes

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 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

Detailed Description

The list compressor.


Member Data Documentation

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

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

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


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