libnm: add ipvx.dhcp-hostname-flags properties

System Internals / NetworkManager - Beniamino Galvani [redhat.com] - 28 November 2019 16:56 EST

When using the dhclient DHCP backend users can tweak the behavior in the dhclient configuration file. One of the options that was reported as useful in the past was the FQDN flags [1] [2].

Add native support for FQDN flags to NM by introducing new ipv{4,6}.dhcp-hostname-flags properties.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1684595 [2] https://bugzilla.redhat.com/show_bug.cgi?id=1255507

1bde86396 libnm: add ipvx.dhcp-hostname-flags properties
clients/common/nm-meta-setting-desc.c | 16 +
clients/common/settings-docs.h.in | 2 +
.../test-client.check-on-disk/test_003.expected | 636 +++++++++------
.../test-client.check-on-disk/test_004.expected | 900 ++++++++++++---------
libnm-core/nm-core-internal.h | 20 +-
libnm-core/nm-setting-ip-config.c | 83 ++
libnm-core/nm-setting-ip-config.h | 81 +-
libnm-core/nm-setting-ip4-config.c | 12 +
libnm-core/nm-utils.c | 53 ++
libnm-core/tests/test-general.c | 1 +
libnm/libnm.ver | 2 +
11 files changed, 1154 insertions(+), 652 deletions(-)

Upstream: cgit.freedesktop.org


  • Share