#[repr(C)]pub struct csp_iface_s {Show 18 fields
pub addr: u16,
pub netmask: u16,
pub name: *const c_char,
pub interface_data: *mut c_void,
pub driver_data: *mut c_void,
pub nexthop: nexthop_t,
pub is_default: u8,
pub tx: u32,
pub rx: u32,
pub tx_error: u32,
pub rx_error: u32,
pub drop: u32,
pub autherr: u32,
pub frame: u32,
pub txbytes: u32,
pub rxbytes: u32,
pub irq: u32,
pub next: *mut csp_iface_s,
}Expand description
This struct is referenced in documentation. Update doc when you change this.
Fields§
§addr: u16< Host address on this subnet
netmask: u16< Subnet mask
name: *const c_char< Name, max compare length is #CSP_IFLIST_NAME_MAX
interface_data: *mut c_void< Interface data, only known/used by the interface layer, e.g. state information.
driver_data: *mut c_void< Driver data, only known/used by the driver layer, e.g. device/channel references.
nexthop: nexthop_t< Next hop (Tx) function
is_default: u8< Set default IF flag (CSP supports multiple defaults)
tx: u32< Successfully transmitted packets
rx: u32< Successfully received packets
tx_error: u32< Transmit errors (packets)
rx_error: u32< Receive errors, e.g. too large message
drop: u32< Dropped packets
autherr: u32< Authentication errors (packets)
frame: u32< Frame format errors (packets)
txbytes: u32< Transmitted bytes
rxbytes: u32< Received bytes
irq: u32< Interrupts
next: *mut csp_iface_sTrait Implementations§
Source§impl Clone for csp_iface_s
impl Clone for csp_iface_s
Source§fn clone(&self) -> csp_iface_s
fn clone(&self) -> csp_iface_s
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for csp_iface_s
impl Debug for csp_iface_s
Source§impl Default for csp_iface_s
impl Default for csp_iface_s
impl Copy for csp_iface_s
Auto Trait Implementations§
impl Freeze for csp_iface_s
impl RefUnwindSafe for csp_iface_s
impl !Send for csp_iface_s
impl !Sync for csp_iface_s
impl Unpin for csp_iface_s
impl UnwindSafe for csp_iface_s
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
Mutably borrows from an owned value. Read more