Loading...
Searching...
No Matches
pktdump.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2015 Freie Universität Berlin
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
22#ifndef NET_GNRC_PKTDUMP_H
23#define NET_GNRC_PKTDUMP_H
24
25#include "sched.h"
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
44#ifndef CONFIG_GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP
45#define CONFIG_GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP 3
46#endif
52#ifndef GNRC_PKTDUMP_MSG_QUEUE_SIZE
53#define GNRC_PKTDUMP_MSG_QUEUE_SIZE (1 << CONFIG_GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP)
54#endif
55
59#ifndef GNRC_PKTDUMP_PRIO
60#define GNRC_PKTDUMP_PRIO (THREAD_PRIORITY_MAIN - 1)
61#endif
62
70#ifndef GNRC_PKTDUMP_STACKSIZE
71#define GNRC_PKTDUMP_STACKSIZE ((THREAD_STACKSIZE_MAIN) - 64)
72#endif
73
78
86
87#ifdef __cplusplus
88}
89#endif
90
91#endif /* NET_GNRC_PKTDUMP_H */
int16_t kernel_pid_t
Unique process identifier.
Definition sched.h:139
kernel_pid_t gnrc_pktdump_init(void)
Start the packet dump thread and listening for incoming packets.
kernel_pid_t gnrc_pktdump_pid
The PID of the pktdump thread.
Scheduler API definition.