Files
finit/plugins
Aaron Andersen 29029bb78f netlink: enumerate existing interfaces at startup
The netlink plugin only receives RTM_NEWLINK events for interfaces that
appear after the plugin starts.  Interfaces that already exist at boot
(e.g., virtio-net in QEMU) never generate events, so their conditions
like net/eth0/exist were never set.

Moving enumeration to PLUGIN_INIT doesn't work because it runs before
cond_init(), so the condition filesystem isn't ready yet.

Fix by registering an HOOK_SVC_PLUGIN callback that queries existing
interfaces and routes.  This hook runs during conf_init(), after the
condition system is initialized.
2026-01-14 15:58:22 -05:00
..
2025-07-22 15:46:46 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00