INET Framework for OMNeT++/OMNEST
debug.h File Reference
#include "lwip/arch.h"

Namespaces

 inet
 Copyright (c) 2005 Jan Ringo�, www.ringos.cz.
 
 inet::tcp
 

Macros

#define LWIP_DBG_LEVEL_ALL   0x00
 lower two bits indicate debug level More...
 
#define LWIP_DBG_LEVEL_OFF   LWIP_DBG_LEVEL_ALL /* compatibility define only */
 
#define LWIP_DBG_LEVEL_WARNING   0x01 /* bad checksums, dropped packets, ... */
 
#define LWIP_DBG_LEVEL_SERIOUS   0x02 /* memory allocation failures, ... */
 
#define LWIP_DBG_LEVEL_SEVERE   0x03
 
#define LWIP_DBG_MASK_LEVEL   0x03
 
#define LWIP_DBG_ON   0x80U
 flag for LWIP_DEBUGF to enable that debug message More...
 
#define LWIP_DBG_OFF   0x00U
 flag for LWIP_DEBUGF to disable that debug message More...
 
#define LWIP_DBG_TRACE   0x40U
 flag for LWIP_DEBUGF indicating a tracing message (to follow program flow) More...
 
#define LWIP_DBG_STATE   0x20U
 flag for LWIP_DEBUGF indicating a state debug message (to follow module states) More...
 
#define LWIP_DBG_FRESH   0x10U
 flag for LWIP_DEBUGF indicating newly added code, not thoroughly tested yet More...
 
#define LWIP_DBG_HALT   0x08U
 flag for LWIP_DEBUGF to halt after printing this debug message More...
 
#define LWIP_ASSERT(message, assertion)
 
#define LWIP_ERROR(message, expression, handler)
 if "expression" isn't true, then print "message" and execute "handler" expression More...
 
#define LWIP_DEBUGF(debug, message)
 

Macro Definition Documentation

#define LWIP_DBG_FRESH   0x10U

flag for LWIP_DEBUGF indicating newly added code, not thoroughly tested yet

#define LWIP_DBG_HALT   0x08U

flag for LWIP_DEBUGF to halt after printing this debug message

#define LWIP_DBG_LEVEL_ALL   0x00

lower two bits indicate debug level

  • 0 all
  • 1 warning
  • 2 serious
  • 3 severe
#define LWIP_DBG_LEVEL_OFF   LWIP_DBG_LEVEL_ALL /* compatibility define only */
#define LWIP_DBG_LEVEL_SERIOUS   0x02 /* memory allocation failures, ... */
#define LWIP_DBG_LEVEL_SEVERE   0x03
#define LWIP_DBG_LEVEL_WARNING   0x01 /* bad checksums, dropped packets, ... */
#define LWIP_DBG_MASK_LEVEL   0x03
#define LWIP_DBG_OFF   0x00U

flag for LWIP_DEBUGF to disable that debug message

#define LWIP_DBG_ON   0x80U

flag for LWIP_DEBUGF to enable that debug message

#define LWIP_DBG_STATE   0x20U

flag for LWIP_DEBUGF indicating a state debug message (to follow module states)

#define LWIP_DBG_TRACE   0x40U

flag for LWIP_DEBUGF indicating a tracing message (to follow program flow)

Referenced by inet::tcp::pbuf_alloc(), inet::tcp::pbuf_chain(), inet::tcp::pbuf_copy(), inet::tcp::pbuf_dechain(), inet::tcp::pbuf_free(), and inet::tcp::pbuf_header().

#define LWIP_ERROR (   message,
  expression,
  handler 
)
Value:
do { if (!(expression)) { \
LWIP_PLATFORM_ASSERT(message); handler;}} while(0)
#define LWIP_PLATFORM_ASSERT(c)
Definition: cc.h:17

if "expression" isn't true, then print "message" and execute "handler" expression

Referenced by inet::tcp::memp_malloc(), inet::tcp::pbuf_cat(), inet::tcp::pbuf_copy(), inet::tcp::pbuf_copy_partial(), inet::tcp::pbuf_header(), and inet::tcp::pbuf_take().