ROHC compression/decompression library
Data Structures | Defines | Functions
list.h File Reference

ROHC generic list compression. More...

#include "ip.h"
#include "comp_list.h"
#include "rohc_traces_internal.h"
Include dependency graph for comp/schemes/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 ROHC_EXPORT 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 withint the list of IPv6 extension headers.
int ROHC_EXPORT rohc_list_encode (struct list_comp *const comp, unsigned char *const dest, int counter, const int size)
 Generic encoding of compressed list.
void ROHC_EXPORT 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 ROHC_EXPORT 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 withint 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_EXPORT rohc_list_encode ( struct list_comp *const  comp,
unsigned char *const  dest,
int  counter,
const int  size 
)

Generic encoding of compressed list.

Parameters:
compThe list compressor
destThe ROHC packet under build
counterThe current position in the rohc-packet-under-build buffer
sizeThe number of element in current list
Returns:
The new position in the rohc-packet-under-build buffer, -1 in case of error
void ROHC_EXPORT 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