2015-04-05 02:10:37 +02:00
|
|
|
#ifndef __DBG_H
|
|
|
|
#define __DBG_H
|
|
|
|
|
2015-04-05 20:27:17 +02:00
|
|
|
#include "conn.h"
|
2015-04-05 02:10:37 +02:00
|
|
|
|
2015-04-10 19:51:56 +02:00
|
|
|
#ifndef CW_LOG_DUMP_ROW_LEN
|
|
|
|
#define CW_LOG_DUMP_ROW_LEN 32
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef CW_LOG_DUMP_ROW_TAB_LEN
|
|
|
|
#define CW_LOG_DUMP_ROW_TAB_LEN 8
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2015-04-05 20:27:17 +02:00
|
|
|
void cw_dbg_elem_(struct conn * conn, int msg, int msgelem, const uint8_t * msgbuf, int len);
|
2015-04-07 07:42:36 +02:00
|
|
|
void cw_dbg_missing_mand(int level,struct conn *conn,cw_action_in_t ** ml,int n,cw_action_in_t *a);
|
2015-04-10 17:14:55 +02:00
|
|
|
void cw_dbg_packet(struct conn *conn, uint8_t * packet, int len);
|
2015-04-05 02:10:37 +02:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef WITH_CW_LOG_DEBUG
|
|
|
|
|
2015-04-10 17:14:55 +02:00
|
|
|
#define cw_dbg_elem(conn,msgtype,msgelemtype,msgbuf,msglen)\
|
|
|
|
cw_dbg_elem_(conn,msgtype,msgelemtype,msgbuf,msglen)
|
2015-04-05 02:10:37 +02:00
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define cw_dbg_elem(...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
2015-04-10 17:14:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @defgroup DebugOptions Dbug Options
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
#define CW_DBG_PKT_IN 0x00000001 /* Headers of incoming CAPWAP packets */
|
|
|
|
#define CW_DBG_PKT_OUT 0x00000002 /* Headers of outgoing CAPWAP packets */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**@}*/
|
|
|
|
|
|
|
|
|
|
|
|
|