net: Allow user to activate 6lowpan compression debug
User can set CONFIG_NETWORK_IP_STACK_DEBUG_6LOWPAN_COMPRESSION to get debugs from generic 6lowpan fragmentation code. The generic code is shared between 802.15.4 and Bluetooth bearers. Change-Id: Iae6dcebe8fb4269e15bac5dcec2b63e79b4abcd3 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
b7c6c2198f
commit
54c1bd92f9
2 changed files with 11 additions and 1 deletions
|
@ -100,6 +100,14 @@ config NETWORK_IP_STACK_DEBUG_15_4_6LOWPAN_FRAG
|
||||||
help
|
help
|
||||||
Enables 802.15.4 6LoWPAN fragmentation to output debug messages
|
Enables 802.15.4 6LoWPAN fragmentation to output debug messages
|
||||||
|
|
||||||
|
config NETWORK_IP_STACK_DEBUG_6LOWPAN_COMPRESSION
|
||||||
|
bool "Debug generic 6LoWPAN compression"
|
||||||
|
depends on NETWORKING_WITH_IPV6
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Enables generic (802.15.4 or Bluetooth) 6LoWPAN compression
|
||||||
|
to output debug messages
|
||||||
|
|
||||||
config NETWORK_IP_STACK_DEBUG_IPV4
|
config NETWORK_IP_STACK_DEBUG_IPV4
|
||||||
bool "Debug core IPv4"
|
bool "Debug core IPv4"
|
||||||
depends on NETWORKING_WITH_IPV4
|
depends on NETWORKING_WITH_IPV4
|
||||||
|
|
|
@ -73,7 +73,9 @@
|
||||||
#include "dev/watchdog.h"
|
#include "dev/watchdog.h"
|
||||||
#include "contiki/ipv6/uip-ds6.h"
|
#include "contiki/ipv6/uip-ds6.h"
|
||||||
|
|
||||||
#define DEBUG 0
|
#ifdef CONFIG_NETWORK_IP_STACK_DEBUG_6LOWPAN_COMPRESSION
|
||||||
|
#define DEBUG 1
|
||||||
|
#endif
|
||||||
#include "contiki/ip/uip-debug.h"
|
#include "contiki/ip/uip-debug.h"
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
/* PRINTFI and PRINTFO are defined for input and output to debug one without changing the timing of the other */
|
/* PRINTFI and PRINTFO are defined for input and output to debug one without changing the timing of the other */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue