All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches

Dump network packets to STDOUT for debugging More...

Detailed Description

Dump network packets to STDOUT for debugging

Topics

 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.
 
#define GNRC_PKTDUMP_PRIO   (THREAD_PRIORITY_MAIN - 1)
 Priority of the pktdump thread.
 
#define GNRC_PKTDUMP_STACKSIZE   ((THREAD_STACKSIZE_MAIN) - 64)
 Stack size used for the pktdump thread.
 

Functions

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

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) - 64)

Stack size used for the pktdump thread.

Note
The message queue was previously allocated on the stack. The default number of messages is 2³. Given sizeof(msg_t) == 8, the stack size is reduced by 64 bytes.

Definition at line 71 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