Loading...
Searching...
No Matches

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.
 
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.
 
gnrc_pktsnip_ttx_pkt
 Outgoing frame that is currently transmitted.
 
uint8_t l2addr [GNRC_NETIF_L2ADDR_MAXLEN]
 The link-layer address currently used as the source address on this interface.
 
uint8_t l2addr_len
 Length in bytes of gnrc_netif_t::l2addr.
 
gnrc_netif_dedup_t last_pkt
 Last received packet information.
 
gnrc_netif_6lo_t sixlo
 6Lo component
 
gnrc_netif_pktq_t send_queue
 Packet queue for sending.
 
msg_t msg_queue [GNRC_NETIF_MSG_QUEUE_SIZE]
 Message queue for the netif thread.
 
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

◆ bus

msg_bus_t gnrc_netif_t::bus[GNRC_NETIF_BUS_NUMOF]

Event Message Bus.

Definition at line 153 of file netif.h.

◆ cur_hl

uint8_t gnrc_netif_t::cur_hl

Current hop-limit for out-going packets.

Definition at line 224 of file netif.h.

◆ dev

netdev_t* gnrc_netif_t::dev

Network device of the network interface.

Definition at line 138 of file netif.h.

◆ device_type

uint8_t gnrc_netif_t::device_type

Device type.

Definition at line 225 of file netif.h.

◆ event_isr

event_t gnrc_netif_t::event_isr

ISR event for the network device.

Definition at line 168 of file netif.h.

◆ 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.

◆ evq

event_queue_t gnrc_netif_t::evq[GNRC_NETIF_EVQ_NUMOF]

Event queue for asynchronous events.

Definition at line 164 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.

◆ ipv6

gnrc_netif_ipv6_t gnrc_netif_t::ipv6

IPv6 component.

Definition at line 147 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.

◆ lorawan

gnrc_netif_lorawan_t gnrc_netif_t::lorawan

LoRaWAN component.

Definition at line 144 of file netif.h.

◆ mac

gnrc_netif_mac_t gnrc_netif_t::mac

Common MAC module component

Definition at line 150 of file netif.h.

◆ msg_queue

msg_t gnrc_netif_t::msg_queue[GNRC_NETIF_MSG_QUEUE_SIZE]

Message queue for the netif thread.

Definition at line 223 of file netif.h.

◆ mutex

rmutex_t gnrc_netif_t::mutex

Mutex of the interface.

Definition at line 139 of file netif.h.

◆ netif

netif_t gnrc_netif_t::netif

network interface descriptor

Definition at line 136 of file netif.h.

◆ ops

const gnrc_netif_ops_t* gnrc_netif_t::ops

Operations of the network interface.

Definition at line 137 of file netif.h.

◆ pid

kernel_pid_t gnrc_netif_t::pid

PID of the network interface's thread.

Definition at line 226 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.

◆ sixlo

gnrc_netif_6lo_t gnrc_netif_t::sixlo

6Lo component

Definition at line 210 of file netif.h.

◆ stats

netstats_t gnrc_netif_t::stats

transceiver's statistics

Definition at line 141 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: