diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-03-22 14:01:08 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-03-23 17:59:38 +0100 |
commit | 2859932bd64d61a89f85fa027762bc16961fcf53 (patch) | |
tree | 284de37671d1c4793b4b047fe3cd76ca23116936 /src/network/networkd-address.h | |
parent | lgtm: disable cpp/missing-return (again) (diff) | |
download | systemd-2859932bd64d61a89f85fa027762bc16961fcf53.tar.xz systemd-2859932bd64d61a89f85fa027762bc16961fcf53.zip |
network: do not enable IPv4 ACD for IPv4 link-local address if ACD is disabled explicitly
The commit 1cf4ed142d6c1e2b9dc6a0bc74b6a83ae30b0f8e makes the IPv4 ACD
enabled unconditionally for IPv4 link-local addresses even if users
explicitly disable ACD.
This makes the IPv4 ACD is enabled by default, but honor user setting.
Fixes #22763.
Diffstat (limited to '')
-rw-r--r-- | src/network/networkd-address.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/networkd-address.h b/src/network/networkd-address.h index 563a3de4e2..0237c1cb98 100644 --- a/src/network/networkd-address.h +++ b/src/network/networkd-address.h @@ -53,6 +53,9 @@ struct Address { bool scope_set:1; bool ip_masquerade_done:1; + + /* duplicate_address_detection is only used by static or IPv4 dynamic addresses. + * To control DAD for IPv6 dynamic addresses, set IFA_F_NODAD to flags. */ AddressFamily duplicate_address_detection; sd_ipv4acd *acd; |