Go to the documentation of this file.
20 #ifndef NET_GNRC_NETIF_PKTQ_H
21 #define NET_GNRC_NETIF_PKTQ_H
61 #if IS_USED(MODULE_GNRC_NETIF_PKTQ)
123 #if IS_USED(MODULE_GNRC_NETIF_PKTQ)
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.
#define assert(cond)
abort the program if assertion is false
POSIX.1-2008 compliant version of the assert macro.
static gnrc_pktsnip_t * gnrc_netif_pktq_get(gnrc_netif_t *netif)
Gets a packet from the packet send queue of a network interface.
Send queue for Network interface API type definitions
gnrc_pktqueue_t * queue
the actual packet queue class
data type for packet queue nodes
Representation of a network interface.
General definitions for network packets and their helper functions.
static gnrc_pktqueue_t * gnrc_pktqueue_remove_head(gnrc_pktqueue_t **queue)
remove the packet queue's head
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.
Definition for GNRC's network interfaces.
gnrc_netif_pktq_t send_queue
Packet queue for sending.
gnrc_pktsnip_t * pkt
pointer to the packet
void gnrc_netif_pktq_sched_get(gnrc_netif_t *netif)
Schedule a dequeue notification to network interface.
Type to represent parts (either headers or payload) of a packet, called snips.