diff options
| author | Michael Biebl <biebl@debian.org> | 2026-07-03 19:53:18 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2026-07-03 19:53:18 +0200 |
| commit | 537bfce2bda471c92caabd388589230200891509 (patch) | |
| tree | aedeccfaf0ba52c238ecf51fc009c0db5d4b60f0 /src/libnm-core-public/nm-setting-ip4-config.h | |
| parent | 869e9027026cdbb15d4e4a6327ff41d2697858eb (diff) | |
New upstream version 1.58~rc1 upstream/1.58_rc1
Diffstat (limited to 'src/libnm-core-public/nm-setting-ip4-config.h')
| -rw-r--r-- | src/libnm-core-public/nm-setting-ip4-config.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/libnm-core-public/nm-setting-ip4-config.h b/src/libnm-core-public/nm-setting-ip4-config.h index c40a7603..f4224747 100644 --- a/src/libnm-core-public/nm-setting-ip4-config.h +++ b/src/libnm-core-public/nm-setting-ip4-config.h @@ -34,6 +34,7 @@ G_BEGIN_DECLS #define NM_SETTING_IP4_CONFIG_DHCP_VENDOR_CLASS_IDENTIFIER "dhcp-vendor-class-identifier" #define NM_SETTING_IP4_CONFIG_DHCP_IPV6_ONLY_PREFERRED "dhcp-ipv6-only-preferred" #define NM_SETTING_IP4_CONFIG_LINK_LOCAL "link-local" +#define NM_SETTING_IP4_CONFIG_CLAT "clat" /** * NM_SETTING_IP4_CONFIG_METHOD_AUTO: @@ -109,6 +110,8 @@ typedef enum { * @NM_SETTING_IP4_DHCP_IPV6_ONLY_PREFERRED_DEFAULT: use the global default value * @NM_SETTING_IP4_DHCP_IPV6_ONLY_PREFERRED_NO: the option is disabled * @NM_SETTING_IP4_DHCP_IPV6_ONLY_PREFERRED_YES: the option is enabled + * @NM_SETTING_IP4_DHCP_IPV6_ONLY_PREFERRED_AUTO: the option is enabled when + * the IPv6 method is "auto" and CLAT is enabled. Since: 1.58 * * #NMSettingIP4DhcpIpv6OnlyPreferred values specify if the "IPv6-Only Preferred" * option (RFC 8925) for DHCPv4 is enabled. @@ -119,8 +122,32 @@ typedef enum { NM_SETTING_IP4_DHCP_IPV6_ONLY_PREFERRED_DEFAULT = -1, NM_SETTING_IP4_DHCP_IPV6_ONLY_PREFERRED_NO = 0, NM_SETTING_IP4_DHCP_IPV6_ONLY_PREFERRED_YES = 1, + NM_SETTING_IP4_DHCP_IPV6_ONLY_PREFERRED_AUTO = 2, } NMSettingIP4DhcpIpv6OnlyPreferred; +/** + * NMSettingIp4ConfigClat: + * @NM_SETTING_IP4_CONFIG_CLAT_DEFAULT: use the global default value + * @NM_SETTING_IP4_CONFIG_CLAT_NO: disable CLAT + * @NM_SETTING_IP4_CONFIG_CLAT_AUTO: enable CLAT only when the IPv4 method + * is 'auto' and the device doesn't have a native IPv4 gateway. + * @NM_SETTING_IP4_CONFIG_CLAT_FORCE: enable CLAT even with IPv4 methods + * other than 'auto' and even if the device has a native IPv4 gateway. + * + * #NMSettingIP4ConfigClat values specify if CLAT (Customer-side translator) + * is enabled or not. CLAT is used to implement the client part of 464XLAT + * (RFC 6877), an architecture that provides IPv4 connectivity to hosts on + * IPv6-only networks. + * + * Since: 1.58 + */ +typedef enum { + NM_SETTING_IP4_CONFIG_CLAT_DEFAULT = -1, + NM_SETTING_IP4_CONFIG_CLAT_NO = 0, + NM_SETTING_IP4_CONFIG_CLAT_AUTO = 1, + NM_SETTING_IP4_CONFIG_CLAT_FORCE = 2, +} NMSettingIp4ConfigClat; + typedef struct _NMSettingIP4ConfigClass NMSettingIP4ConfigClass; GType nm_setting_ip4_config_get_type(void); @@ -141,6 +168,9 @@ NM_AVAILABLE_IN_1_52 NMSettingIP4DhcpIpv6OnlyPreferred nm_setting_ip4_config_get_dhcp_ipv6_only_preferred(NMSettingIP4Config *setting); +NM_AVAILABLE_IN_1_58 +NMSettingIp4ConfigClat nm_setting_ip4_config_get_clat(NMSettingIP4Config *setting); + G_END_DECLS #endif /* __NM_SETTING_IP4_CONFIG_H__ */ |