Go to the documentation of this file.
22 #ifndef NET_GNRC_UDP_H
23 #define NET_GNRC_UDP_H
47 #ifndef CONFIG_GNRC_UDP_MSG_QUEUE_SIZE_EXP
48 #define CONFIG_GNRC_UDP_MSG_QUEUE_SIZE_EXP (3U)
55 #define GNRC_UDP_PRIO (THREAD_PRIORITY_MAIN - 2)
61 #ifndef GNRC_UDP_STACK_SIZE
62 #define GNRC_UDP_STACK_SIZE (THREAD_STACKSIZE_DEFAULT)
69 #ifndef GNRC_UDP_MSG_QUEUE_SIZE
70 #define GNRC_UDP_MSG_QUEUE_SIZE (1 << CONFIG_GNRC_UDP_MSG_QUEUE_SIZE_EXP)
Includes all essential GNRC network stack base modules.
Functions to work with different byte orders.
int gnrc_udp_init(void)
Initialize and start UDP.
gnrc_pktsnip_t * gnrc_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_calc_csum(gnrc_pktsnip_t *hdr, gnrc_pktsnip_t *pseudo_hdr)
Calculate the checksum for the given packet.
UDP header and helper functions definition.
Type to represent parts (either headers or payload) of a packet, called snips.