]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: address: do not set IFA_F_PERMANENT flag
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 12 Feb 2021 05:44:42 +0000 (14:44 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 12 Feb 2021 14:09:21 +0000 (23:09 +0900)
commit53ae4762efb37e1b6ea1139eca836c53af61293d
tree47efe7bac4324ff3ed71adeb9171bdd2c4f0e19a
parenta8481354f0cd2c0855472193d0f57c7a77674969
network: address: do not set IFA_F_PERMANENT flag

The flag is automatically set by kernel when the valid lifetime is
infinite. Note that the flag in netlink message for IPv4 address is
ignored. See set_ifa_lifetime() in kernel's net/ipv4/devinet.c.
But the flag is honored for IPv6 address. And if the flag is set with
finite valid lifetime, the address will not removed automatically by
the kernel.
src/network/networkd-address.c