mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 04:10:14 +01:00
The user does not want to send machine hostname to the DHCP server globally by default to avoid ddns record getting created in IPAM. otherwise, IPAM creates ddns records which might interfere with user's regular host record. Thus, introduce the ternary property dhcp_send_hostname_v2 to warrant this behavior. Notice that we set the GSpec of dhcp-send-hostname-v2 to int, because defining it as enum would make that it cannot be expanded in a backwards compatible way if we need to add more values: old clients using libnm would reject it due to the new value being unknown. Follow the same strategy than _nm_setting_property_define_direct_enum, defining the NMSettInfoPropertType as enum, but the glib's GSpec as int. Resolves: https://issues.redhat.com/browse/RHEL-56565 https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2029 https://gitlab.freedesktop.org/NetworkManager/NetworkManager-ci/-/merge_requests/1765 |
||
|---|---|---|
| .. | ||
| tests | ||
| meson.build | ||
| nm-meta-setting-access.c | ||
| nm-meta-setting-access.h | ||
| nm-meta-setting-base-impl.c | ||
| nm-meta-setting-base-impl.h | ||
| nm-meta-setting-base.h | ||
| nm-meta-setting-desc.c | ||
| nm-meta-setting-desc.h | ||
| README.md | ||
| settings-docs.h.in | ||
libnmc-setting
A client library on top of libnm (and libnm-base). Like libnmc-base, this is a helper library that a libnm client could use.
But its purpose is more specific. It's mainly about providing a generic API for handling connection properties. As such, it's only used by nmcli and in practice also specific to nmcli.
Theoretically, the API is supposed to be generic, so we could imagine another client that uses this beside nmcli.
Like libnm-base, this has a similar purpose and application as ../libnm-client-aux-extern/, the difference is that it's even more specific.