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: String
Interface to which packets for this route will be sent
destination: Ipv4Addr
The destination network or destination host
gateway: Ipv4Addr
§flags: u16
§refcnt: u16
Number of references to this route
in_use: u16
Count of lookups for the route
metrics: u32
The ‘distance’ to the target (usually counted in hops)
mask: Ipv4Addr
§mtu: u32
Default maximum transmission unit for TCP connections over this route
window: u32
Default window size for TCP connections over this route
irtt: u32
Initial 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