ROHC generic list decompression.
More...
Go to the source code of this file.
|
int | rohc_list_decode_maybe (struct list_decomp *const decomp, const uint8_t *const packet, const size_t packet_len) |
| Decompress the compressed list in given packet if present. More...
|
|
bool | rohc_decomp_list_create_item (struct list_decomp *const decomp, const unsigned int xi_index, const unsigned int xi_index_value, const uint8_t *const rohc_packet, const size_t rohc_max_len, size_t *const item_length) |
| Create a list item from a XI item. More...
|
|
ROHC generic list decompression.
- Author
- Didier Barvaux didie.nosp@m.r@ba.nosp@m.rvaux.nosp@m..org
#define rd_list_debug |
( |
|
decomp_list, |
|
|
|
format, |
|
|
|
... |
|
) |
| |
Value:
format, ##__VA_ARGS__)
#define rohc_debug(entity_struct, entity, profile, format,...)
Definition: rohc_traces_internal.h:61
Definition: rohc_traces.h:84
Print a debug trace for the given decompression list
#define rd_list_warn |
( |
|
decomp_list, |
|
|
|
format, |
|
|
|
... |
|
) |
| |
Value:
format, ##__VA_ARGS__)
#define rohc_warning(entity_struct, entity, profile, format,...)
Definition: rohc_traces_internal.h:71
Definition: rohc_traces.h:84
Print a warning trace for the given decompression list
bool rohc_decomp_list_create_item |
( |
struct list_decomp *const |
decomp, |
|
|
const unsigned int |
xi_index, |
|
|
const unsigned int |
xi_index_value, |
|
|
const uint8_t *const |
rohc_packet, |
|
|
const size_t |
rohc_max_len, |
|
|
size_t *const |
item_length |
|
) |
| |
Create a list item from a XI item.
- Parameters
-
| decomp | The context for list decompression |
| xi_index | The XI index |
| xi_index_value | The XI index value |
| rohc_packet | The beginning of the XI item in the ROHC header |
| rohc_max_len | The remaining length (in bytes) of the ROHC header |
[out] | item_length | The length (in bytes) of the created item |
- Returns
- true if item was successfully created, false if a problem occurred
int rohc_list_decode_maybe |
( |
struct list_decomp * |
decomp, |
|
|
const uint8_t * |
packet, |
|
|
size_t |
packet_len |
|
) |
| |
Decompress the compressed list in given packet if present.
- Parameters
-
decomp | The list decompressor |
packet | The ROHC packet to decompress |
packet_len | The remaining length of the packet to decode (in bytes) |
- Returns
- The size of the compressed list in packet in case of success, -1 in case of failure