Struct riot_sys::gnrc_netif_t

source ·
#[repr(C)]
pub struct gnrc_netif_t {
Show 13 fields pub netif: netif_t, pub ops: *const gnrc_netif_ops_t, pub dev: *mut netdev_t, pub mutex: rmutex_t, pub ipv6: gnrc_netif_ipv6_t, pub flags: u32, pub evq: event_queue_t, pub event_isr: event_t, pub l2addr: [u8; 8], pub l2addr_len: u8, pub cur_hl: u8, pub device_type: u8, pub pid: kernel_pid_t,
}
Expand description

@brief Representation of a network interface

Fields§

§netif: netif_t

< network interface descriptor

§ops: *const gnrc_netif_ops_t

< Operations of the network interface

§dev: *mut netdev_t

< Network device of the network interface

§mutex: rmutex_t

< Mutex of the interface

§ipv6: gnrc_netif_ipv6_t

< IPv6 component

§flags: u32

@brief Flags for the interface

@see net_gnrc_netif_flags

§evq: event_queue_t

@brief Event queue for asynchronous events

§event_isr: event_t

@brief ISR event for the network device

§l2addr: [u8; 8]

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

@note Only available if @ref GNRC_NETIF_L2ADDR_MAXLEN > 0

§l2addr_len: u8

@brief Length in bytes of gnrc_netif_t::l2addr

@note Only available if @ref GNRC_NETIF_L2ADDR_MAXLEN > 0

§cur_hl: u8

< Current hop-limit for out-going packets

§device_type: u8

< Device type

§pid: kernel_pid_t

< PID of the network interface’s thread

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.