Skip to main content

batman_robin/model/
interface.rs

1/// Represents a network interface in the batman-adv mesh.
2///
3/// This struct provides the interface name and whether it is currently active
4/// within the mesh.
5#[derive(Debug, Clone)]
6pub struct Interface {
7    /// Name of the interface, e.g., "eth0" or "bat0".
8    pub ifname: String,
9
10    /// Indicates whether this interface is currently active in the mesh.
11    pub active: bool,
12}