Struct riot_sys::gnrc_netif_t[][src]

#[repr(C)]
pub struct gnrc_netif_t { 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 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

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

Performs the conversion.

Performs the conversion.

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.