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

bool is_present
bool changed
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.
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 struct list_comp *const comp, const unsigned char *const ext, 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.

Whether the extension list changed in the last IP header or not

Referenced by c_init_header_info(), and code_ipv6_dynamic_part().

int(* list_comp::compare)(const struct list_comp *const comp, const unsigned char *const ext, const int size, const int index_table)

the handler used to compare two extension of the same type

Referenced by c_init_header_info().

counter which indicates if ref_list is reference list

Referenced by c_init_header_info().

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

The current list.

Referenced by c_generic_destroy(), c_init_header_info(), and code_ipv6_dynamic_part().

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

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

unsigned short(* list_comp::get_size)(const unsigned char *ext)

the handler used to get the size of an extension

Referenced by c_init_header_info().

Whether the extension list is present in IP header or not

Referenced by code_ipv6_dynamic_part().

The reference list.

Referenced by c_generic_destroy(), c_init_header_info(), and code_ipv6_dynamic_part().

The translation table.


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