ROHC compression/decompression library
|
ROHC generic list compression. More...
Go to the source code of this file.
Data Structures | |
struct | list_comp |
The list compressor. More... | |
Defines | |
#define | rc_list_debug(comp_list, format,...) |
Functions | |
bool ROHC_EXPORT | detect_ipv6_ext_changes (struct list_comp *const comp, const struct ip_packet *const ip, bool *const list_struct_changed, bool *const list_content_changed) |
Detect changes withint the list of IPv6 extension headers. | |
int ROHC_EXPORT | rohc_list_encode (struct list_comp *const comp, unsigned char *const dest, int counter, const int size) |
Generic encoding of compressed list. | |
void ROHC_EXPORT | rohc_list_update_context (struct list_comp *const comp) |
Update the list compression context. |
ROHC generic list compression.
#define rc_list_debug | ( | comp_list, | |
format, | |||
... | |||
) |
rohc_debug(comp_list, ROHC_TRACE_COMP, (comp_list)->profile_id, \ format, ##__VA_ARGS__)
Print a debug trace for the given compression list
bool ROHC_EXPORT detect_ipv6_ext_changes | ( | struct list_comp *const | comp, |
const struct ip_packet *const | ip, | ||
bool *const | list_struct_changed, | ||
bool *const | list_content_changed | ||
) |
Detect changes withint the list of IPv6 extension headers.
comp | The list compressor | |
ip | The IP packet to compress | |
[out] | list_struct_changed | Whether the structure of the list changed |
[out] | list_content_changed | Whether the content of the list changed |
int ROHC_EXPORT rohc_list_encode | ( | struct list_comp *const | comp, |
unsigned char *const | dest, | ||
int | counter, | ||
const int | size | ||
) |
Generic encoding of compressed list.
comp | The list compressor |
dest | The ROHC packet under build |
counter | The current position in the rohc-packet-under-build buffer |
size | The number of element in current list |
void ROHC_EXPORT rohc_list_update_context | ( | struct list_comp *const | comp | ) |
Update the list compression context.
Update the counter of the current list. Update the counters of the items of the current list. Update the reference list with the current list if possible.
comp | The list compressor |