Struct procfs::net::RouteEntry
source · pub struct RouteEntry {
pub iface: String,
pub destination: Ipv4Addr,
pub gateway: Ipv4Addr,
pub flags: u16,
pub refcnt: u16,
pub in_use: u16,
pub metrics: u32,
pub mask: Ipv4Addr,
pub mtu: u32,
pub window: u32,
pub irtt: u32,
}Expand description
An entry in the ipv4 route table
Fields§
§iface: StringInterface to which packets for this route will be sent
destination: Ipv4AddrThe destination network or destination host
gateway: Ipv4Addr§flags: u16§refcnt: u16Number of references to this route
in_use: u16Count of lookups for the route
metrics: u32The ‘distance’ to the target (usually counted in hops)
mask: Ipv4Addr§mtu: u32Default maximum transmission unit for TCP connections over this route
window: u32Default window size for TCP connections over this route
irtt: u32Initial RTT (Round Trip Time)
Trait Implementations§
source§impl Clone for RouteEntry
impl Clone for RouteEntry
source§fn clone(&self) -> RouteEntry
fn clone(&self) -> RouteEntry
Returns a copy 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 more