Dump network packets to STDOUT for debugging. More...

Detailed Description

Dump network packets to STDOUT for debugging.

Modules

 GNRC PKTDUMP compile configurations
 

Files

file  pktdump.h
 Interface for a generic network packet dumping module.
 

Macros

#define GNRC_PKTDUMP_MSG_QUEUE_SIZE   (1 << CONFIG_GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP)
 Message queue size for the pktdump thread. More...
 
#define GNRC_PKTDUMP_PRIO   (THREAD_PRIORITY_MAIN - 1)
 Priority of the pktdump thread. More...
 
#define GNRC_PKTDUMP_STACKSIZE   (THREAD_STACKSIZE_MAIN)
 Stack size used for the pktdump thread. More...
 

Functions

kernel_pid_t gnrc_pktdump_init (void)
 Start the packet dump thread and listening for incoming packets. More...
 

Variables

kernel_pid_t gnrc_pktdump_pid
 The PID of the pktdump thread.
 

Macro Definition Documentation

◆ GNRC_PKTDUMP_MSG_QUEUE_SIZE

#define GNRC_PKTDUMP_MSG_QUEUE_SIZE   (1 << CONFIG_GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP)

Message queue size for the pktdump thread.

Definition at line 53 of file pktdump.h.

◆ GNRC_PKTDUMP_PRIO

#define GNRC_PKTDUMP_PRIO   (THREAD_PRIORITY_MAIN - 1)

Priority of the pktdump thread.

Definition at line 60 of file pktdump.h.

◆ GNRC_PKTDUMP_STACKSIZE

#define GNRC_PKTDUMP_STACKSIZE   (THREAD_STACKSIZE_MAIN)

Stack size used for the pktdump thread.

Definition at line 67 of file pktdump.h.

Function Documentation

◆ gnrc_pktdump_init()

kernel_pid_t gnrc_pktdump_init ( void  )

Start the packet dump thread and listening for incoming packets.

Returns
PID of the pktdump thread
negative value on error