pub struct Originator {
pub originator: MacAddr6,
pub next_hop: MacAddr6,
pub outgoing_if: String,
pub last_seen_ms: u32,
pub tq: Option<u8>,
pub throughput: Option<u32>,
pub is_best: bool,
}Expand description
Represents an originator node in the batman-adv mesh network.
An originator is a node that advertises itself or forwards packets for other nodes. This struct contains information about the originator’s MAC address, routing metrics, and the interface used to reach it.
Fields§
§originator: MacAddr6MAC address of the originator node.
Corresponds to BATADV_ATTR_ORIG_ADDRESS.
next_hop: MacAddr6MAC address of the next hop towards the originator.
Corresponds to BATADV_ATTR_NEIGH_ADDRESS.
outgoing_if: StringOutgoing interface name or index used to reach the originator.
Corresponds to BATADV_ATTR_HARD_IFNAME (or the interface index).
last_seen_ms: u32Time since the originator was last seen, in milliseconds.
Corresponds to BATADV_ATTR_LAST_SEEN_MSECS.
tq: Option<u8>Optional TQ (link quality) metric towards this originator.
Corresponds to BATADV_ATTR_TQ.
throughput: Option<u32>Optional throughput value towards this originator.
Corresponds to BATADV_ATTR_THROUGHPUT.
is_best: boolIndicates whether this originator is considered the best next-hop router.
Corresponds to BATADV_ATTR_ROUTER.
Trait Implementations§
Source§impl Clone for Originator
impl Clone for Originator
Source§fn clone(&self) -> Originator
fn clone(&self) -> Originator
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more