OpenSDN source code
gmp_trace.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GMP_TRACE_QUERY   0x00000001 /* Query packets */
 
#define GMP_TRACE_QUERY_DETAIL   0x00000002 /* Detailed query packets */
 
#define GMP_TRACE_REPORT   0x00000004 /* Report packets */
 
#define GMP_TRACE_REPORT_DETAIL   0x00000008 /* Detailed report packets */
 
#define GMP_TRACE_LEAVE   0x00000010 /* Leave packets */
 
#define GMP_TRACE_LEAVE_DETAIL   0x00000020 /* Detailed leave packets */
 
#define GMP_TRACE_PACKET_BAD   0x00000040 /* Bad packets */
 
#define GMP_TRACE_PACKET
 
#define GMP_TRACE_PACKET_DETAIL
 
#define gmp_trace(context, traceflags, flag, ...)
 

Functions

static boolean gmp_trace_set (uint32_t traceflags, uint32_t tracebits)
 
const char * gmp_proto_string (gmp_proto proto)
 
const char * gmp_filter_mode_string (gmp_filter_mode mode)
 
const char * gmp_generic_version_string (gmp_version ver)
 
const char * gmp_report_type_string (gmp_report_rectype type)
 

Macro Definition Documentation

◆ gmp_trace

#define gmp_trace (   context,
  traceflags,
  flag,
  ... 
)
Value:
if (gmp_trace_set((traceflags), (flag))) \
gmpx_trace((context), __VA_ARGS__)
static boolean gmp_trace_set(uint32_t traceflags, uint32_t tracebits)
Definition: gmp_trace.h:32

Definition at line 42 of file gmp_trace.h.

◆ GMP_TRACE_LEAVE

#define GMP_TRACE_LEAVE   0x00000010 /* Leave packets */

Definition at line 17 of file gmp_trace.h.

◆ GMP_TRACE_LEAVE_DETAIL

#define GMP_TRACE_LEAVE_DETAIL   0x00000020 /* Detailed leave packets */

Definition at line 18 of file gmp_trace.h.

◆ GMP_TRACE_PACKET

#define GMP_TRACE_PACKET
Value:
GMP_TRACE_LEAVE) /* Packets */
#define GMP_TRACE_REPORT
Definition: gmp_trace.h:15
#define GMP_TRACE_QUERY
Definition: gmp_trace.h:13

Definition at line 20 of file gmp_trace.h.

◆ GMP_TRACE_PACKET_BAD

#define GMP_TRACE_PACKET_BAD   0x00000040 /* Bad packets */

Definition at line 19 of file gmp_trace.h.

◆ GMP_TRACE_PACKET_DETAIL

#define GMP_TRACE_PACKET_DETAIL
Value:
GMP_TRACE_REPORT_DETAIL | \
GMP_TRACE_LEAVE_DETAIL) /* Detail packets */
#define GMP_TRACE_QUERY_DETAIL
Definition: gmp_trace.h:14

Definition at line 22 of file gmp_trace.h.

◆ GMP_TRACE_QUERY

#define GMP_TRACE_QUERY   0x00000001 /* Query packets */

Definition at line 13 of file gmp_trace.h.

◆ GMP_TRACE_QUERY_DETAIL

#define GMP_TRACE_QUERY_DETAIL   0x00000002 /* Detailed query packets */

Definition at line 14 of file gmp_trace.h.

◆ GMP_TRACE_REPORT

#define GMP_TRACE_REPORT   0x00000004 /* Report packets */

Definition at line 15 of file gmp_trace.h.

◆ GMP_TRACE_REPORT_DETAIL

#define GMP_TRACE_REPORT_DETAIL   0x00000008 /* Detailed report packets */

Definition at line 16 of file gmp_trace.h.

Function Documentation

◆ gmp_filter_mode_string()

const char* gmp_filter_mode_string ( gmp_filter_mode  mode)

◆ gmp_generic_version_string()

const char* gmp_generic_version_string ( gmp_version  ver)

◆ gmp_proto_string()

const char* gmp_proto_string ( gmp_proto  proto)

◆ gmp_report_type_string()

const char* gmp_report_type_string ( gmp_report_rectype  type)

◆ gmp_trace_set()

static boolean gmp_trace_set ( uint32_t  traceflags,
uint32_t  tracebits 
)
inlinestatic

Definition at line 32 of file gmp_trace.h.