ROHC compression/decompression library
Data Structures | Macros | Functions
comp_list.h File Reference

ROHC generic list compression. More...

#include "ip.h"
#include "rohc_list.h"
#include "rohc_traces_internal.h"
Include dependency graph for comp_list.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  list_comp
 The list compressor. More...
 

Macros

#define rc_list_debug(comp_list, format, ...)
 

Functions

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. More...
 
int rohc_list_encode (struct list_comp *const comp, uint8_t *const dest, int counter)
 Generic encoding of compressed list. More...
 
void rohc_list_update_context (struct list_comp *const comp)
 Update the list compression context. More...
 

Detailed Description

ROHC generic list compression.

Author
Didier Barvaux didie.nosp@m.r@ba.nosp@m.rvaux.nosp@m..org

Macro Definition Documentation

#define rc_list_debug (   comp_list,
  format,
  ... 
)
Value:
rohc_debug(comp_list, ROHC_TRACE_COMP, (comp_list)->profile_id, \
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

Function Documentation

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
compThe list compressor
ipThe IP packet to compress
[out]list_struct_changedWhether the structure of the list changed
[out]list_content_changedWhether 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
compThe list compressor
destThe ROHC packet under build
counterThe 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
compThe list compressor