diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2012-02-21 16:03:34 +0100 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2012-02-27 16:28:11 +0100 |
commit | 788720abecfb5c3ccaaacf67bf3c0e7777fd5cca (patch) | |
tree | da38ed27ea1ca2191d11a08abdb641f6b08beb0d /libnm-util/nm-setting-ip6-config.h | |
parent | 785b6fb8073cf4af8168828ba5a48e2efe69b5d6 (diff) | |
download | NetworkManager-788720abecfb5c3ccaaacf67bf3c0e7777fd5cca.tar.gz |
libnm-util: add a property for IPv6 Privacy Extensions to NMSettingIP6Config
ip6-privacy
Diffstat (limited to 'libnm-util/nm-setting-ip6-config.h')
-rw-r--r-- | libnm-util/nm-setting-ip6-config.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/libnm-util/nm-setting-ip6-config.h b/libnm-util/nm-setting-ip6-config.h index 01425af18c..57f9fdc828 100644 --- a/libnm-util/nm-setting-ip6-config.h +++ b/libnm-util/nm-setting-ip6-config.h @@ -19,7 +19,7 @@ * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. * - * (C) Copyright 2007 - 2010 Red Hat, Inc. + * (C) Copyright 2007 - 2012 Red Hat, Inc. */ #ifndef NM_SETTING_IP6_CONFIG_H @@ -68,6 +68,7 @@ GQuark nm_setting_ip6_config_error_quark (void); #define NM_SETTING_IP6_CONFIG_IGNORE_AUTO_DNS "ignore-auto-dns" #define NM_SETTING_IP6_CONFIG_NEVER_DEFAULT "never-default" #define NM_SETTING_IP6_CONFIG_MAY_FAIL "may-fail" +#define NM_SETTING_IP6_CONFIG_IP6_PRIVACY "ip6-privacy" /** * NM_SETTING_IP6_CONFIG_METHOD_IGNORE: @@ -123,6 +124,25 @@ GQuark nm_setting_ip6_config_error_quark (void); */ #define NM_SETTING_IP6_CONFIG_METHOD_SHARED "shared" +/** + * NMSettingIP6ConfigPrivacy: + * @NM_SETTING_IP6_CONFIG_PRIVACY_UNKNOWN: unknown or no value specified + * @NM_SETTING_IP6_CONFIG_PRIVACY_DISABLED: IPv6 Privacy Extensions are disabled + * @NM_SETTING_IP6_CONFIG_PRIVACY_PREFER_PUBLIC_ADDR: IPv6 Privacy Extensions + * are enabled, but public addresses are preferred over temporary addresses + * @NM_SETTING_IP6_CONFIG_PRIVACY_PREFER_TEMP_ADDR: IPv6 Privacy Extensions + * are enabled and temporary addresses are preferred over public addresses + * + * #NMSettingIP6ConfigPrivacy values indicate if and how IPv6 Privacy + * Extensions are used (RFC4941). + */ +typedef enum { + NM_SETTING_IP6_CONFIG_PRIVACY_UNKNOWN = -1, + NM_SETTING_IP6_CONFIG_PRIVACY_DISABLED = 0, + NM_SETTING_IP6_CONFIG_PRIVACY_PREFER_PUBLIC_ADDR = 1, + NM_SETTING_IP6_CONFIG_PRIVACY_PREFER_TEMP_ADDR = 2 +} NMSettingIP6ConfigPrivacy; + typedef struct NMIP6Address NMIP6Address; @@ -221,6 +241,7 @@ gboolean nm_setting_ip6_config_get_ignore_auto_routes (NMSettingIP gboolean nm_setting_ip6_config_get_ignore_auto_dns (NMSettingIP6Config *setting); gboolean nm_setting_ip6_config_get_never_default (NMSettingIP6Config *setting); gboolean nm_setting_ip6_config_get_may_fail (NMSettingIP6Config *setting); +NMSettingIP6ConfigPrivacy nm_setting_ip6_config_get_ip6_privacy (NMSettingIP6Config *setting); G_END_DECLS |