diff options
author | Francesco Giudici <fgiudici@redhat.com> | 2017-03-02 19:18:49 +0100 |
---|---|---|
committer | Francesco Giudici <fgiudici@redhat.com> | 2017-03-24 15:18:09 +0100 |
commit | 2eba42b4ab46261f34d075d46f7a5e5347eaf889 (patch) | |
tree | 447cacf6a2f7b634e11c5f2f4f7b20796ca9fe18 /src/nm-policy.h | |
parent | e22af1aa9e361c6b7338ef64abfd28cd3bbafccd (diff) | |
download | NetworkManager-2eba42b4ab46261f34d075d46f7a5e5347eaf889.tar.gz |
policy: add support to configurable hostname mode
Diffstat (limited to 'src/nm-policy.h')
-rw-r--r-- | src/nm-policy.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/nm-policy.h b/src/nm-policy.h index 64cac4fe70..2c96e6d090 100644 --- a/src/nm-policy.h +++ b/src/nm-policy.h @@ -47,4 +47,21 @@ NMDevice *nm_policy_get_default_ip6_device (NMPolicy *policy); NMDevice *nm_policy_get_activating_ip4_device (NMPolicy *policy); NMDevice *nm_policy_get_activating_ip6_device (NMPolicy *policy); +/** + * NMPolicyHostnameMode + * @NM_POLICY_HOSTNAME_MODE_NONE: never update the transient hostname. + * @NM_POLICY_HOSTNAME_MODE_DHCP: only hostname from DHCP hostname + * options are eligible to be set as transient hostname. + * @NM_POLICY_HOSTNAME_MODE_FULL: NM will try to update the hostname looking + * to current static hostname, DHCP options, reverse IP lookup and externally + * set hostnames. + * + * NMPolicy's hostname update policy + */ +typedef enum { + NM_POLICY_HOSTNAME_MODE_NONE, + NM_POLICY_HOSTNAME_MODE_DHCP, + NM_POLICY_HOSTNAME_MODE_FULL, +} NMPolicyHostnameMode; + #endif /* __NETWORKMANAGER_POLICY_H__ */ |