Restore disable_ipv6 sysctl after removing a device from bridge or bond
authorFabian Bläse <[email protected]>
Fri, 15 Nov 2024 21:12:36 +0000 (22:12 +0100)
committerRobert Marko <[email protected]>
Sat, 17 May 2025 09:35:54 +0000 (11:35 +0200)
commit723c699e84f4b0f4515928f0cc57a5be2a317ced
tree665f1a4e6ed9df57f4176227de0bf520ec96feef
parente8bbf246ce2e134613d3b68477dcb955689408e4
Restore disable_ipv6 sysctl after removing a device from bridge or bond

If a device is added to a bond or bridge, the disable_ipv6 sysctl is
set, so that no link local addresses are present on the slave devices.

However, the disable_ipv6 sysctl is not restored after removing the
device from the bridge or bond. Therefore, no IPv6 link local addresses
are added and autoconfiguration does not work.

Set the disable_ipv6 to '0' on device removal from bridge or bond.

Signed-off-by: Fabian Bläse <[email protected]>
Link: https://github.com/openwrt/netifd/pull/40
Signed-off-by: Robert Marko <[email protected]>
bonding.c
bridge.c