4c64965257637c055a9f12e5d1f820bbc72fcf19
Interfaces may come up at any time, even during our initialization of them, for various reasons; e.g. the kernel will raise VLAN when its parent is raised; or we will raise an interface if configured with BindCarrier and its associated interfaces come up. When LinkLocalAddressing has been disabled for ipv6, we disable addr_gen_mode in the kernel, so it will not automatically create a ipv6ll address when the interface is raised. However, we currently drop all foreign addresses before disabling addr_gen_mode. If the link has been up for a long time, then its kernel-created ipv6ll address will be correctly dropped. If the link is down, and stays down until we raise it after finishing configuration, the addr_gen_mode setting will be disabled when the interface is raised and the kernel will not create any ipv6ll address. However, if the interface is raised after dropping foreign config, but before we have disabled addr_gen_mode, the kernel will create a ipv6ll tentative address that will eventually finish DAD and become a working ipv6ll address, even though we have been configured to disable ipv6ll. Moving our call to drop foreign addresses to after we have successfully set addr_gen_mode closes this window; after we disable addr_gen_mode, we can safely remove foreign ipv6ll addresses (including tentative ones) and be sure that the kernel will not create any more. Fixes: #13882.
…
System and Service Manager
Details
General information about systemd can be found in the systemd Wiki.
Information about build requirements is provided in the README file.
Consult our NEWS file for information about what's new in the most recent systemd versions.
Please see the Hacking guide for information on how to hack on systemd and test your modifications.
Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.
When preparing patches for systemd, please follow our Coding Style Guidelines.
If you are looking for support, please contact our mailing list or join our IRC channel.
Stable branches with backported patches are available in the stable repo.
Languages
C
88.5%
Shell
5.7%
Python
4.6%
Meson
1.1%
