20#ifndef NET_GNRC_NETIF_PKTQ_H
21#define NET_GNRC_NETIF_PKTQ_H
68#if IS_USED(MODULE_GNRC_NETIF_PKTQ)
130#if IS_USED(MODULE_GNRC_NETIF_PKTQ)
POSIX.1-2008 compliant version of the assert macro.
#define assert(cond)
abort the program if assertion is false
Definition for GNRC's network interfaces.
void gnrc_netif_pktq_sched_get(gnrc_netif_t *netif)
Schedule a dequeue notification to network interface.
static gnrc_pktsnip_t * gnrc_netif_pktq_get(gnrc_netif_t *netif)
Gets a packet from the packet send queue of a network interface.
unsigned gnrc_netif_pktq_usage(void)
Returns the overall usage of the packet queue resources.
int gnrc_netif_pktq_put(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt)
Puts a packet into the packet send queue of a network interface.
static bool gnrc_netif_pktq_empty(gnrc_netif_t *netif)
Check if a network interface's packet send queue is empty.
int gnrc_netif_pktq_push_back(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt)
Pushes a packet back to the head of the packet send queue of a network interface.
static gnrc_pktqueue_t * gnrc_pktqueue_remove_head(gnrc_pktqueue_t **queue)
remove the packet queue's head
General definitions for network packets and their helper functions.
gnrc_pktqueue_t * queue
the actual packet queue class
Representation of a network interface.
gnrc_netif_pktq_t send_queue
Packet queue for sending.
data type for packet queue nodes
gnrc_pktsnip_t * pkt
pointer to the packet
Type to represent parts (either headers or payload) of a packet, called snips.
Send queue for Network interface API type definitions