kos_sys::os::netStruct netif_t
Source #[repr(C)]
pub struct netif_t {Show 30 fields
pub le_next: *mut netif_t,
pub le_prev: *mut *mut netif_t,
pub name: *const c_char,
pub descr: *const c_char,
pub index: c_int,
pub dev_id: u32,
pub flags: u32,
pub mac_addr: [u8; 6],
pub ip_addr: [u8; 4],
pub netmask: [u8; 4],
pub gateway: [u8; 4],
pub broadcast: [u8; 4],
pub dns: [u8; 4],
pub mtu: c_int,
pub ip6_lladdr: in6_addr,
pub ip6_addrs: *mut in6_addr,
pub ip6_addr_count: c_int,
pub ip6_gateway: in6_addr,
pub mtu6: u32,
pub hop_limit: c_int,
pub if_detect: Option<unsafe extern "C" fn(netif: *mut netif_t) -> c_int>,
pub if_init: Option<unsafe extern "C" fn(netif: *mut netif_t) -> c_int>,
pub if_shutdown: Option<unsafe extern "C" fn(netif: *mut netif_t) -> c_int>,
pub if_start: Option<unsafe extern "C" fn(netif: *mut netif_t) -> c_int>,
pub if_stop: Option<unsafe extern "C" fn(netif: *mut netif_t) -> c_int>,
pub if_tx: Option<unsafe extern "C" fn(netif: *mut netif_t, data: *const u8, len: c_int, blocking: c_int) -> c_int>,
pub if_tx_commit: Option<unsafe extern "C" fn(netif: *mut netif_t) -> c_int>,
pub if_rx_poll: Option<unsafe extern "C" fn(netif: *mut netif_t) -> c_int>,
pub if_set_flags: Option<unsafe extern "C" fn(netif: *mut netif_t, flags_and: u32, flags_or: u32) -> c_int>,
pub if_set_mc: Option<unsafe extern "C" fn(netif: *mut netif_t, list: *const u8, count: c_int) -> c_int>,
}
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.