Module iface_watcher

Module iface_watcher 

Source
Expand description

Dynamic interface add/remove watcher (Linux netlink; stubs on other platforms). Dynamic network interface add/remove watcher.

When watch_interfaces is enabled in [face_system], the router spawns a background task that subscribes to OS network interface events and notifies the face system when interfaces appear or disappear.

§Platform support

  • Linux: RTMGRP_LINK netlink socket (RTM_NEWLINK / RTM_DELLINK).
  • macOS: not yet supported — logs a warning and the task exits.
  • Windows: not yet supported — logs a warning and the task exits.

Enums§

InterfaceEvent
An interface lifecycle event delivered by the watcher task.

Functions§

watch_interfaces
Spawn an async task that watches for interface add/remove events.