Representation of a network interface. More...

Detailed Description

Representation of a network interface.

Definition at line 135 of file netif.h.

#include <netif.h>

Data Fields

netif_t netif
 network interface descriptor
 
const gnrc_netif_ops_tops
 Operations of the network interface.
 
netdev_tdev
 Network device of the network interface.
 
rmutex_t mutex
 Mutex of the interface.
 
netstats_t stats
 transceiver's statistics
 
gnrc_netif_lorawan_t lorawan
 LoRaWAN component.
 
gnrc_netif_ipv6_t ipv6
 IPv6 component.
 
gnrc_netif_mac_t mac
 Common MAC module component
 
msg_bus_t bus [GNRC_NETIF_BUS_NUMOF]
 Event Message Bus.
 
uint32_t flags
 Flags for the interface. More...
 
event_queue_t evq [GNRC_NETIF_EVQ_NUMOF]
 Event queue for asynchronous events.
 
event_t event_isr
 ISR event for the network device.
 
event_t event_tx_done
 TX done event for the network device. More...
 
gnrc_pktsnip_ttx_pkt
 Outgoing frame that is currently transmitted. More...
 
uint8_t l2addr [GNRC_NETIF_L2ADDR_MAXLEN]
 The link-layer address currently used as the source address on this interface. More...
 
uint8_t l2addr_len
 Length in bytes of gnrc_netif_t::l2addr. More...
 
gnrc_netif_dedup_t last_pkt
 Last received packet information. More...
 
gnrc_netif_6lo_t sixlo
 6Lo component
 
gnrc_netif_pktq_t send_queue
 Packet queue for sending. More...
 
uint8_t cur_hl
 Current hop-limit for out-going packets.
 
uint8_t device_type
 Device type.
 
kernel_pid_t pid
 PID of the network interface's thread.
 

Field Documentation

◆ event_tx_done

event_t gnrc_netif_t::event_tx_done

TX done event for the network device.

Only provided with module netdev_new_api

Definition at line 175 of file netif.h.

◆ flags

uint32_t gnrc_netif_t::flags

Flags for the interface.

See also
net_gnrc_netif_flags

Definition at line 160 of file netif.h.

◆ l2addr

uint8_t gnrc_netif_t::l2addr[GNRC_NETIF_L2ADDR_MAXLEN]

The link-layer address currently used as the source address on this interface.

Note
Only available if GNRC_NETIF_L2ADDR_MAXLEN > 0

Definition at line 192 of file netif.h.

◆ l2addr_len

uint8_t gnrc_netif_t::l2addr_len

Length in bytes of gnrc_netif_t::l2addr.

Note
Only available if GNRC_NETIF_L2ADDR_MAXLEN > 0

Definition at line 199 of file netif.h.

◆ last_pkt

gnrc_netif_dedup_t gnrc_netif_t::last_pkt

Last received packet information.

Note
Only available with Link-layer Broadcast deduplication.

Definition at line 206 of file netif.h.

◆ send_queue

gnrc_netif_pktq_t gnrc_netif_t::send_queue

Packet queue for sending.

Note
Only available with Send queue for Network interface API.

Definition at line 218 of file netif.h.

◆ tx_pkt

gnrc_pktsnip_t* gnrc_netif_t::tx_pkt

Outgoing frame that is currently transmitted.

Only provided with module netdev_new_api

This needs to be freed by gnrc_netif once TX is done

Definition at line 183 of file netif.h.


The documentation for this struct was generated from the following file: