diff --git a/man/NetworkManager.conf.xml b/man/NetworkManager.conf.xml
index ba7bb434dd..70ddea3878 100644
--- a/man/NetworkManager.conf.xml
+++ b/man/NetworkManager.conf.xml
@@ -167,17 +167,14 @@ plugins-=remove-me
dhcp
- This key sets up what DHCP client
- NetworkManager will use. Allowed values depend on build configuration and
- typically include internal and dhcpcd.
- Support for unmaintained dhclient client has been deprecated
- and disabled by default.
+ This key sets up what DHCP client NetworkManager will
+ use. Allowed values depend on build configuration; this version of
+ NetworkManager was built with support for the following clients:
+ &NM_DHCP_CLIENTS_ENABLED_TEXT;.
The internal client is built-in, while other options
may require an external DHCP client to be installed.
If this key is missing, &NM_CONFIG_DEFAULT_MAIN_DHCP;
- is used with a fallback to other suppored clients in this order:
- internal, dhcpcd,
- dhclient.
+ is used with a fallback to other supported clients.
no-auto-default
@@ -360,7 +357,7 @@ no-auto-default=*
management mode. This option is about how NetworkManager writes to
/etc/resolv.conf, if at all.
The default value depends on NetworkManager build
- options, and this version of NetworkManager was build with a default of
+ options, and this version of NetworkManager was built with a default of
"&NM_CONFIG_DEFAULT_MAIN_RC_MANAGER;".
Regardless of this setting, NetworkManager will
always write its version of resolv.conf to its runtime state directory
diff --git a/man/common.ent.in b/man/common.ent.in
index 71a47f42d7..2d17b14676 100644
--- a/man/common.ent.in
+++ b/man/common.ent.in
@@ -10,3 +10,4 @@
+
diff --git a/meson.build b/meson.build
index 81d83ce843..43fd88c818 100644
--- a/meson.build
+++ b/meson.build
@@ -631,8 +631,9 @@ config_h.set10('WITH_OFONO', enable_ofono)
# DHCP client support
config_dhcp_default = get_option('config_dhcp_default')
config_h.set_quoted('NM_CONFIG_DEFAULT_MAIN_DHCP', config_dhcp_default)
+config_dhcp_clients_enabled = [ 'internal' ]
dhcp_summary = ''
-foreach client : [ 'dhclient', 'dhcpcd' ]
+foreach client : [ 'dhcpcd', 'dhclient' ]
client_path = get_option(client)
client_enable = (client_path != 'no')
if client_enable
@@ -662,6 +663,7 @@ foreach client : [ 'dhclient', 'dhcpcd' ]
dhcp_summary += (' ' + client + ': ' + client_enable.to_string())
if (client_enable)
dhcp_summary += (' ' + client_path)
+ config_dhcp_clients_enabled += client
endif
if (client == 'dhclient')
dhcp_summary += ' (deprecated)'
@@ -935,6 +937,7 @@ data_conf.set('NM_CONFIG_DEFAULT_MAIN_DHCP', config_dhcp_default)
data_conf.set('NM_CONFIG_DEFAULT_MAIN_RC_MANAGER', config_dns_rc_manager_default)
data_conf.set('NM_CONFIG_DEFAULT_MAIN_MIGRATE_IFCFG_RH_TEXT', config_migrate_ifcfg_rh_default)
data_conf.set('NM_CONFIG_DEFAULT_WIFI_BACKEND_TEXT', config_wifi_backend_default)
+data_conf.set('NM_DHCP_CLIENTS_ENABLED', ', '.join(config_dhcp_clients_enabled))
data_conf.set('NM_MAJOR_VERSION', nm_major_version)
data_conf.set('NM_MICRO_VERSION', nm_micro_version)
data_conf.set('NM_MINOR_VERSION', nm_minor_version)