#[repr(C)]pub struct gnrc_netif_t {Show 14 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; 1],
pub event_isr: event_t,
pub l2addr: [u8; 8],
pub l2addr_len: u8,
pub msg_queue: [msg_t; 16],
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; 1]
@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
msg_queue: [msg_t; 16]
@brief Message queue for the netif thread
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§
source§impl Clone for gnrc_netif_t
impl Clone for gnrc_netif_t
source§fn clone(&self) -> gnrc_netif_t
fn clone(&self) -> gnrc_netif_t
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for gnrc_netif_t
impl Debug for gnrc_netif_t
source§impl Default for gnrc_netif_t
impl Default for gnrc_netif_t
impl Copy for gnrc_netif_t
Auto Trait Implementations§
impl Freeze for gnrc_netif_t
impl RefUnwindSafe for gnrc_netif_t
impl !Send for gnrc_netif_t
impl !Sync for gnrc_netif_t
impl Unpin for gnrc_netif_t
impl UnwindSafe for gnrc_netif_t
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 352 bytes