diff --git a/man/systemd.network.xml b/man/systemd.network.xml index 8b0f7363df..bdffcf5518 100644 --- a/man/systemd.network.xml +++ b/man/systemd.network.xml @@ -997,6 +997,27 @@ Defaults to false. + + Anonymize= + + Takes a boolean argument. When true, the options sent to the DHCP server will + follow the RFC 7844 + (Anonymity Profiles for DHCP Clients) to minimize disclosure of identifying information. + Defaults to false. + + This option should only be set to true when + MACAddressPolicy= is set to random + (see systemd.link5). + + Note that this configuration will overwrite others. + In concrete, the following variables will be ignored: + SendHostname=, ClientIdentifier=, + UseRoutes=, SendHostname=, + UseMTU=, VendorClassIdentifier=, + UseTimezone=. + + SendHostname= diff --git a/src/network/networkd-network-gperf.gperf b/src/network/networkd-network-gperf.gperf index 54385b59d7..7dab421392 100644 --- a/src/network/networkd-network-gperf.gperf +++ b/src/network/networkd-network-gperf.gperf @@ -101,6 +101,7 @@ DHCP.UseMTU, config_parse_bool, DHCP.UseHostname, config_parse_bool, 0, offsetof(Network, dhcp_use_hostname) DHCP.UseDomains, config_parse_dhcp_use_domains, 0, offsetof(Network, dhcp_use_domains) DHCP.UseRoutes, config_parse_bool, 0, offsetof(Network, dhcp_use_routes) +DHCP.Anonymize, config_parse_bool, 0, offsetof(Network, dhcp_anonymize) DHCP.SendHostname, config_parse_bool, 0, offsetof(Network, dhcp_send_hostname) DHCP.Hostname, config_parse_hostname, 0, offsetof(Network, dhcp_hostname) DHCP.RequestBroadcast, config_parse_bool, 0, offsetof(Network, dhcp_broadcast) diff --git a/src/network/networkd-network.h b/src/network/networkd-network.h index d55e6f73f9..6c9c1ff6a5 100644 --- a/src/network/networkd-network.h +++ b/src/network/networkd-network.h @@ -128,6 +128,7 @@ struct Network { unsigned dhcp_route_metric; uint32_t dhcp_route_table; uint16_t dhcp_client_port; + bool dhcp_anonymize; bool dhcp_send_hostname; bool dhcp_broadcast; bool dhcp_critical;