#[repr(C)]pub struct mxr_network_port_t {Show 21 fields
pub port: u16,
pub name: [c_char; 32],
pub link_speed: u8,
pub link_full_duplex: bool,
pub ip: [c_char; 16],
pub querier: [c_char; 16],
pub has_mac_address: bool,
pub mac_address: [u8; 6],
pub has_errors: bool,
pub in_error: bool,
pub in_fcs_error: bool,
pub in_collision: bool,
pub out_deferred: bool,
pub out_excessive: bool,
pub polarity_error: bool,
pub skew_warning: bool,
pub length_warning: bool,
pub has_vct_status: bool,
pub vct_warning: [bool; 4],
pub cable_status_count: usize,
pub cable_status: [mxr_cable_status_t; 4],
}Expand description
The link state and diagnostics of one network port.
Fields§
§port: u16Port number.
name: [c_char; 32]Port name.
link_speed: u8Negotiated link speed.
link_full_duplex: boolWhether the link negotiated full duplex.
ip: [c_char; 16]The port’s own address, empty when it has not reported one.
querier: [c_char; 16]The IGMP querier the port sees, empty when it sees none.
has_mac_address: boolWhether the port reported a hardware address.
mac_address: [u8; 6]The hardware address, meaningful only when has_mac_address is set.
has_errors: boolWhether the port reported link errors.
in_error: boolInput errors.
in_fcs_error: boolInput frame check errors.
in_collision: boolInput collisions.
out_deferred: boolDeferred transmissions.
out_excessive: boolExcessive transmissions.
polarity_error: boolPolarity errors.
skew_warning: boolSkew warning.
length_warning: boolLength warning.
has_vct_status: boolWhether the port reported a virtual cable test.
vct_warning: [bool; 4]Whether each pair raised a warning, meaningful only when
has_vct_status is set.
cable_status_count: usizeHow many entries of cable_status the port filled in.
cable_status: [mxr_cable_status_t; 4]Cable diagnostics per pair.
Trait Implementations§
Source§impl Clone for mxr_network_port_t
impl Clone for mxr_network_port_t
Source§fn clone(&self) -> mxr_network_port_t
fn clone(&self) -> mxr_network_port_t
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more