ROHC generic list compression.
More...
#include "ip.h"
#include "rohc_list.h"
#include "rohc_traces_internal.h"
Go to the source code of this file.
ROHC generic list compression.
- Author
- Didier Barvaux didie.nosp@m.r@ba.nosp@m.rvaux.nosp@m..org
#define rc_list_debug |
( |
|
comp_list, |
|
|
|
format, |
|
|
|
... |
|
) |
| |
Value:
format, ##__VA_ARGS__)
Definition: rohc_traces.h:83
#define rohc_debug(entity_struct, entity, profile, format,...)
Definition: rohc_traces_internal.h:61
Print a debug trace for the given compression list
bool 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 within the list of IPv6 extension headers.
- Parameters
-
| 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 |
- Returns
- true if no error occurred, false if one error occurred
int rohc_list_encode |
( |
struct list_comp *const |
comp, |
|
|
uint8_t *const |
dest, |
|
|
int |
counter |
|
) |
| |
Generic encoding of compressed list.
- Parameters
-
comp | The list compressor |
dest | The ROHC packet under build |
counter | The current position in the rohc-packet-under-build buffer |
- Returns
- The new position in the rohc-packet-under-build buffer, -1 in case of error
void 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.
- Parameters
-