ROHC compression/decompression library
Functions
rohc_traces_internal.c File Reference

ROHC for traces. More...

#include "rohc_traces_internal.h"
#include <stdio.h>
#include <assert.h>
Include dependency graph for rohc_traces_internal.c:

Functions

void rohc_dump_packet (const rohc_trace_callback_t trace_cb, const rohc_trace_entity_t trace_entity, const rohc_trace_level_t trace_level, const char *const descr, const unsigned char *const packet, const size_t length)
 Dump given packet content.

Detailed Description

ROHC for traces.

Author:
Julien Bernard <julien.bernard@toulouse.viveris.com>
Audric Schiltknecht <audric.schiltknecht@toulouse.viveris.com>
Didier Barvaux <didier@barvaux.org>

Function Documentation

void rohc_dump_packet ( const rohc_trace_callback_t  trace_cb,
const rohc_trace_entity_t  trace_entity,
const rohc_trace_level_t  trace_level,
const char *const  descr,
const unsigned char *const  packet,
const size_t  length 
)

Dump given packet content.

Parameters:
trace_cbThe function to log traces
trace_entityThe entity that emits the traces
trace_levelThe priority level for the trace
descrThe description of the packet to dump
packetThe packet to dump
lengthThe length (in bytes) of the packet to dump

References __rohc_print, ROHC_PROFILE_GENERAL, and ROHC_TRACE_DEBUG.

Referenced by rohc_compress2(), and rohc_decompress().