pub struct RoutingConfig {
pub max_hops: u8,
pub algorithm: String,
pub route_expiry_s: u64,
pub dns_servers: Vec<String>,
}Expand description
Routing behaviour for propagating and aging route advertisements.
Fields§
§max_hops: u8Maximum hop count accepted before a route is considered unusable.
algorithm: StringRouting algorithm identifier used for compatibility and diagnostics.
route_expiry_s: u64Lifetime of learned routes before expiry, in seconds.
dns_servers: Vec<String>DNS resolvers handed to the system resolver (resolvectl dns pim0 … on Linux/systemd-resolved) when split-default routing
is engaged. Without this list the resolver keeps its
DHCP-provided upstream — which becomes unreachable the moment
the user disables their wifi/wired uplink, so curl gmail.com
fails even though the IP path through the mesh is live.
Defaults to a small public anycast set; override for corporate
split-DNS (["10.0.0.53"]), pi-hole on the gateway
(["10.77.0.1"]), or IPv6-only resolvers.
Trait Implementations§
Source§impl Clone for RoutingConfig
impl Clone for RoutingConfig
Source§fn clone(&self) -> RoutingConfig
fn clone(&self) -> RoutingConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RoutingConfig
impl Debug for RoutingConfig
Source§impl Default for RoutingConfig
impl Default for RoutingConfig
Source§impl<'de> Deserialize<'de> for RoutingConfig
impl<'de> Deserialize<'de> for RoutingConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for RoutingConfig
impl PartialEq for RoutingConfig
Source§fn eq(&self, other: &RoutingConfig) -> bool
fn eq(&self, other: &RoutingConfig) -> bool
self and other values to be equal, and is used by ==.