OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

#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
void gmpx_trace(void *context, const char *parms,...)
Definition: gmp_map.cc:548

Definition at line 42 of file gmp_trace.h.

#define GMP_TRACE_LEAVE   0x00000010 /* Leave packets */

Definition at line 17 of file gmp_trace.h.

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

Definition at line 18 of file gmp_trace.h.

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

Definition at line 20 of file gmp_trace.h.

#define GMP_TRACE_PACKET_BAD   0x00000040 /* Bad packets */

Definition at line 19 of file gmp_trace.h.

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

Definition at line 22 of file gmp_trace.h.

#define GMP_TRACE_QUERY   0x00000001 /* Query packets */

Definition at line 13 of file gmp_trace.h.

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

Definition at line 14 of file gmp_trace.h.

#define GMP_TRACE_REPORT   0x00000004 /* Report packets */

Definition at line 15 of file gmp_trace.h.

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

Definition at line 16 of file gmp_trace.h.

Function Documentation

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

Definition at line 32 of file gmp_trace.h.