diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-11-21 21:17:58 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-11-21 21:24:18 +0100 |
commit | cf289b1415026bac43b39f1c8d8a95005ea57ed3 (patch) | |
tree | 9906c5b872b6b868895ada2f162d15c730262be8 /src/network/networkd-network.h | |
parent | man: [DHCPv4] RapidCommit= is disabled when Anonymize=yes (diff) | |
download | systemd-cf289b1415026bac43b39f1c8d8a95005ea57ed3.tar.xz systemd-cf289b1415026bac43b39f1c8d8a95005ea57ed3.zip |
network/dhcp: disable RapidCommit= by default when AllowList=/DenyList= is specified
AllowList= and DenyList= filter only DHCPOFFER messages. So, if
RapidCommit= is enabled, then networkd unconditionally accepts a rapid
ACK message even if its sender is filtered out by the lists.
As AllowList=/DenyList= implemented earlier than RapidCommit=, so
enabling RapidCommit= unconditionally by default may break existing
setups that use AllowList=/DenyList=.
Let's disable RapidCommit= by default when AllowList=/DenyList= is
enabled. Still the setting can be enabled by setting explicitly even
AllowList=/DenyList= is also specified.
Diffstat (limited to '')
-rw-r--r-- | src/network/networkd-network.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-network.h b/src/network/networkd-network.h index 4995e55b53..03131b7061 100644 --- a/src/network/networkd-network.h +++ b/src/network/networkd-network.h @@ -141,7 +141,7 @@ struct Network { bool dhcp_send_hostname_set; int dhcp_broadcast; int dhcp_ipv6_only_mode; - bool dhcp_use_rapid_commit; + int dhcp_use_rapid_commit; bool dhcp_use_dns; bool dhcp_use_dns_set; bool dhcp_routes_to_dns; |