26 #ifndef ROHC_COMP_LIST_H 27 #define ROHC_COMP_LIST_H 35 #define rc_list_debug(comp_list, format, ...) \ 36 rohc_debug(comp_list, ROHC_TRACE_COMP, (comp_list)->profile_id, \ 37 format, ##__VA_ARGS__) 64 __attribute__((warn_unused_result,
const));
82 bool *
const list_struct_changed,
83 bool *
const list_content_changed)
84 __attribute__((
nonnull(1, 2, 3, 4)));
89 __attribute__((warn_unused_result,
nonnull(1, 2)));
The information collected about one of the packet IP headers.
Definition: uncomp_pkt_hdrs.h:59
void detect_ipv6_ext_changes(struct list_comp *const comp, const struct rohc_pkt_ip_hdr *const ip, bool *const list_struct_changed, bool *const list_content_changed)
Detect changes within the list of IPv6 extension headers.
Definition: comp_list.c:129
uint8_t counter
Definition: rohc_list.h:73
int rohc_list_encode(struct list_comp *const comp, uint8_t *const dest, int counter)
Generic encoding of compressed list.
Definition: comp_list.c:279
int profile_id
Definition: comp_list.h:76
struct rohc_list lists[ROHC_LIST_GEN_ID_MAX+2]
Definition: comp_list.h:49
unsigned int cur_id
Definition: comp_list.h:54
void(* rohc_trace_callback2_t)(void *const priv_ctxt, const rohc_trace_level_t level, const rohc_trace_entity_t entity, const int profile, const char *const format,...)
The function prototype for the trace callback.
Definition: rohc_traces.h:118
rohc_trace_callback2_t trace_callback
Definition: comp_list.h:72
void * trace_callback_priv
Definition: comp_list.h:74
Internal structures for ROHC compression.
Define list compression with its function.
int(* get_index_table)(const uint8_t type, const size_t occur_nr)
the handler used to get the index of an item
Definition: comp_list.h:63
bool(* rohc_list_item_cmp)(const struct rohc_list_item *const item, const uint8_t ext_type, const uint8_t *const ext_data, const size_t ext_len)
Definition: rohc_list.h:124
#define ROHC_LIST_GEN_ID_MAX
Definition: rohc_list.h:54
#define ROHC_LIST_MAX_ITEM
Definition: rohc_list.h:36
void rohc_list_update_context(struct list_comp *const comp)
Update the list compression context.
Definition: comp_list.c:343
unsigned int ref_id
Definition: comp_list.h:52
The list compressor.
Definition: comp_list.h:43
A list item.
Definition: rohc_list.h:88
Define a list for compression.
Definition: rohc_list.h:62
rohc_list_item_cmp cmp_item
Definition: comp_list.h:67
struct rohc_list_item trans_table[ROHC_LIST_MAX_ITEM]
Definition: comp_list.h:46
uint8_t oa_repetitions_nr
Definition: comp_list.h:58
Internal ROHC macros and functions for traces.