ROHC compression/decompression library
Macros | Functions
rohc_traces_internal.c File Reference

ROHC for traces. More...

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

Macros

#define rohc_dump_buf_byte_width   3U /* 'XX ' */
 
#define rohc_dump_buf_byte_nr   16U /* 16 bytes per line */
 
#define rohc_dump_buf_column_sep   2U /* spaces between 8 1st/last bytes */
 
#define rohc_dump_buf_line_max
 
#define rohc_dump_buf_size_max   ((rohc_dump_buf_line_max) + 1)
 

Functions

void rohc_dump_packet (const rohc_trace_callback2_t trace_cb, void *const trace_cb_priv, const rohc_trace_entity_t trace_entity, const rohc_trace_level_t trace_level, const char *const descr, const struct rohc_buf packet)
 Dump the content of the given packet. More...
 
void rohc_dump_buf (const rohc_trace_callback2_t trace_cb, void *const trace_cb_priv, const rohc_trace_entity_t trace_entity, const rohc_trace_level_t trace_level, const char *const descr, const uint8_t *const packet, const size_t length)
 Dump the content of the given buffer. More...
 

Detailed Description

ROHC for traces.

Author
Julien Bernard julie.nosp@m.n.be.nosp@m.rnard.nosp@m.@tou.nosp@m.louse.nosp@m..viv.nosp@m.eris..nosp@m.com
Audric Schiltknecht audri.nosp@m.c.sc.nosp@m.hiltk.nosp@m.nech.nosp@m.t@tou.nosp@m.lous.nosp@m.e.viv.nosp@m.eris.nosp@m..com
Didier Barvaux didie.nosp@m.r@ba.nosp@m.rvaux.nosp@m..org

Macro Definition Documentation

◆ rohc_dump_buf_byte_nr

#define rohc_dump_buf_byte_nr   16U /* 16 bytes per line */

◆ rohc_dump_buf_byte_width

#define rohc_dump_buf_byte_width   3U /* 'XX ' */

◆ rohc_dump_buf_column_sep

#define rohc_dump_buf_column_sep   2U /* spaces between 8 1st/last bytes */

◆ rohc_dump_buf_line_max

#define rohc_dump_buf_line_max
Value:
#define rohc_dump_buf_byte_nr
#define rohc_dump_buf_byte_width
#define rohc_dump_buf_column_sep

◆ rohc_dump_buf_size_max

#define rohc_dump_buf_size_max   ((rohc_dump_buf_line_max) + 1)

Function Documentation

◆ rohc_dump_buf()

void rohc_dump_buf ( const rohc_trace_callback2_t  trace_cb,
void *const  trace_cb_priv,
const rohc_trace_entity_t  trace_entity,
const rohc_trace_level_t  trace_level,
const char *const  descr,
const uint8_t *const  packet,
const size_t  length 
)

Dump the content of the given buffer.

Parameters
trace_cbThe function to log traces
trace_cb_privAn optional private context, may be NULL
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

◆ rohc_dump_packet()

void rohc_dump_packet ( const rohc_trace_callback2_t  trace_cb,
void *const  trace_cb_priv,
const rohc_trace_entity_t  trace_entity,
const rohc_trace_level_t  trace_level,
const char *const  descr,
const struct rohc_buf  packet 
)

Dump the content of the given packet.

Parameters
trace_cbThe function to log traces
trace_cb_privAn optional private context, may be NULL
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