From: juga0 Date: Sat, 29 Jul 2017 23:10:40 +0000 (+0200) Subject: networkd: RFC7844, add configuration variable X-Git-Tag: v235~148^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7585baa0167747cc877b6418855eb93017d4e2ff;p=platform%2Fupstream%2Fsystemd.git networkd: RFC7844, add configuration variable to enable Anonymity Profiles and document it. --- diff --git a/man/systemd.network.xml b/man/systemd.network.xml index 8b0f736..bdffcf5 100644 --- a/man/systemd.network.xml +++ b/man/systemd.network.xml @@ -998,6 +998,27 @@ + 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= When true (the default), the machine's hostname will diff --git a/src/network/networkd-network-gperf.gperf b/src/network/networkd-network-gperf.gperf index 54385b5..7dab421 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 d55e6f7..6c9c1ff 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;