diff options
author | Thomas Haller <thaller@redhat.com> | 2018-11-02 17:05:03 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-11-13 19:09:34 +0100 |
commit | 8861ac2976795e05aa6a5f5e6c822977bf950ed3 (patch) | |
tree | 7e80f5c18259b48522ff06d651dc2ab30f8ef595 /libnm-core | |
parent | dfdd4e3bd36057860460578cd8a677b35d15a101 (diff) |
dhcp: add "ipv4.dhcp-client-id=duid" setting
Add a new mode for the DHCPv4 client identifier.
"duid" is what the internal (systemd) DHCP client already does by
default. It is also the same as used by systemd-networkd's
"ClientIdentifier=duid" setting. What we still lack (compared to
networkd) are a way to overwrite IAID and the DUID.
Previously, this mode was used by the internal DHCP plugin
by default. However, it could not be explicitly configured.
In general, our default values should also be explicitly selectable.
Now the "duid" client identifier can also be used with the "dhclient"
plugin.
Diffstat (limited to 'libnm-core')
-rw-r--r-- | libnm-core/nm-setting-ip4-config.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libnm-core/nm-setting-ip4-config.c b/libnm-core/nm-setting-ip4-config.c index 008b0f16c..38056abc9 100644 --- a/libnm-core/nm-setting-ip4-config.c +++ b/libnm-core/nm-setting-ip4-config.c @@ -721,6 +721,9 @@ nm_setting_ip4_config_class_init (NMSettingIP4ConfigClass *klass) * with type ethernet (01). Currently, these options only work for ethernet * type of links. * + * The special value "duid" generates a RFC4361-compliant client identifier based + * on a hash of the interface name as IAID and /etc/machine-id. + * * The special value "stable" is supported to generate a type 0 client identifier based * on the stable-id (see connection.stable-id) and a per-host key. If you set the * stable-id, you may want to include the "${DEVICE}" or "{$MAC}" specifier to get a |