Loading...
Searching...
No Matches
udp.h File Reference

UDP GNRC definition. More...

Detailed Description

UDP GNRC definition.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file udp.h.

#include <stdint.h>
#include "byteorder.h"
#include "net/gnrc.h"
#include "net/udp.h"
+ Include dependency graph for udp.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CONFIG_GNRC_UDP_MSG_QUEUE_SIZE_EXP   (3U)
 Default message queue size for the UDP thread (as exponent of 2^n).
 
#define GNRC_UDP_PRIO   (THREAD_PRIORITY_MAIN - 2)
 Priority of the UDP thread.
 
#define GNRC_UDP_STACK_SIZE   ((THREAD_STACKSIZE_SMALL) - 64)
 Default stack size to use for the UDP thread.
 
#define GNRC_UDP_MSG_QUEUE_SIZE   (1 << CONFIG_GNRC_UDP_MSG_QUEUE_SIZE_EXP)
 Message queue size to use for the UDP thread.
 

Functions

int gnrc_udp_calc_csum (gnrc_pktsnip_t *hdr, gnrc_pktsnip_t *pseudo_hdr)
 Calculate the checksum for the given packet.
 
gnrc_pktsnip_tgnrc_udp_hdr_build (gnrc_pktsnip_t *payload, uint16_t src, uint16_t dst)
 Allocate and initialize a fresh UDP header in the packet buffer.
 
int gnrc_udp_init (void)
 Initialize and start UDP.