mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 04:33:00 +02:00
Only physical interfaces have a permanent link address. So in order to restore the default MAC generated by the kernel for interfaces such as bridges, veth pairs, VLAN interfaces, and link aggregates, we recreate them. This patch adds support for checking if the phys-address attribute has been deleted from bridge, vlan, and veth interfaces. The netdag_must_del() function has been refactorored slightly so each interface type is responsible for returning true if its condiitions are satisfied. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>