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...

Defines

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

Detailed Description

ROHC generic list compression.

Author:
Didier Barvaux <didier@barvaux.org>

Define Documentation

#define rc_list_debug ( comp_list,
format,
...   ) 
Value:
rohc_debug(comp_list, ROHC_TRACE_COMP, (comp_list)->profile_id, \
                   format, ##__VA_ARGS__)

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:
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:
comp The list compressor

Generated on 4 Jul 2018 for ROHC compression/decompression library by  doxygen 1.6.1