/* This file is part of libcapwap. libcapwap is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. libcapwap is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Foobar. If not, see . */ /** * @file * @brief */ #ifndef __DBG_H #define __DBG_H #include "conn.h" #include "cw.h" #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 /** *@addtogroup LOGDBG *@{ */ /** * Debug levels */ enum cw_dbg_levels{ /** Show headers of incomming CAPWAP packets */ DBG_PKT_IN=0, /** Show headers of outgoing CAPWAP packets */ DBG_PKT_OUT, /** Incomming CAPWAP packets with errors, wich would usually silently discarded */ DBG_PKT_ERR, /** Dump content of incomming packets */ DBG_PKT_DMP, /** Display incomming CAPWAP/LWAPP messages */ DBG_MSG_IN, /** Display outgoing CAPWAP/LWAPP messages */ DBG_MSG_OUT, DBG_MSG_DMP, /** Message errors */ DBG_MSG_ERR, /** Show message elements in incomming messages */ DBG_ELEM_IN, /** Show message elements assembled for outgoing messages */ DBG_ELEM_OUT, /** Show message element details */ DBG_ELEM_DETAIL, /** Error in msg elements */ DBG_ELEM_ERR, /** Show subelements */ DBG_SUBELEM, /** Show dump of subelements */ DBG_SUBELEM_DMP, /** hex dump elements */ DBG_ELEM_DMP, /** General infos, like CAPWAP state */ DBG_INFO, /** Misc. warnings */ DBG_WARN, /** RFC related */ DBG_RFC, /** DTLS related messages */ DBG_DTLS, /** DTLS BIOs in/out */ DBG_DTLS_BIO, /** Dump DTLS BIO i/o */ DBG_DTLS_BIO_DMP, /** Show DTLS Details */ DBG_DTLS_DETAIL, DBG_CFG_DMP, DBG_CFG_SET, /** Debug Mods */ DBG_MOD, DBG_STATE, /**