Skip to main content

print_interfaces

Function print_interfaces 

Source
pub fn print_interfaces(interfaces: &[Interface])
Expand description

Prints the list of batman-adv interfaces with their current status.

§Arguments

  • interfaces: Slice of Interface structs, each containing:
    • ifname: Name of the interface
    • active: Boolean indicating whether the interface is active

§Behavior

  • Prints each interface in the format: "iface_name: active" or "iface_name: inactive".