From 28028b26b3371756811e95d894f709f4b1207c00 Mon Sep 17 00:00:00 2001
From: Michael Biebl NMSettingIPConfig — Abstract base class for IPv4 and IPv6
-addressing, routing, and name service properties
NMSettingIPConfig
@@ -84,6 +84,14 @@ addressing, routing, and name service properties
int +nm_ip_address_cmp_full (+const NMIPAddress *a, +const NMIPAddress *b, +NMIPAddressCmpFlags cmp_flags);
Note that with cmp_flags
+ NM_IP_ADDRESS_CMP_FLAGS_WITH_ATTRS, there
+is no total order for comparing GVariant. That means, if the two addresses
+only differ by their attributes, the sort order is undefined and the return
+value only indicates equality.
a |
+the NMIPAddress |
++ |
b |
+the NMIPAddress to compare |
++ |
cmp_flags |
+the NMIPAddressCmpFlags that indicate what to compare. |
++ |
NMIPAddress *
nm_ip_address_dup (NMIPAddress *address);
@@ -5727,6 +5829,63 @@ the particular kind of device.
Since: 1.2
+const char *
+nm_setting_ip_config_get_dhcp_iaid (NMSettingIPConfig *setting);
+Returns the value contained in the “dhcp-iaid” +property.
+ + +Since: 1.22
+NMDhcpHostnameFlags
+nm_setting_ip_config_get_dhcp_hostname_flags
+ (NMSettingIPConfig *setting);
+Returns the value contained in the “dhcp-hostname-flags” +property.
+ + +Since: 1.22
+#define NM_IP_ROUTE_ATTRIBUTE_TABLE "table" -+
Compare flags for nm_ip_address_cmp_full().
| + |
+ no flags. + |
++ |
| + |
+ when comparing two addresses, + also consider their attributes. Warning: note that attributes are GVariants + and they don't have a total order. In other words, if the address differs only + by their attributes, the returned compare order is not total. In that case, + the return value merely indicates equality (zero) or inequality. + |
++ |
Since: 1.22
#define NM_IP_ROUTE_ATTRIBUTE_SRC "src" +NM_IP_ROUTE_ATTRIBUTE_CWND
+#define NM_IP_ROUTE_ATTRIBUTE_CWND "cwnd"
#define NM_IP_ROUTE_ATTRIBUTE_TOS "tos" +NM_IP_ROUTE_ATTRIBUTE_INITCWND
+#define NM_IP_ROUTE_ATTRIBUTE_INITCWND "initcwnd"
#define NM_IP_ROUTE_ATTRIBUTE_ONLINK "onlink" +NM_IP_ROUTE_ATTRIBUTE_INITRWND
+#define NM_IP_ROUTE_ATTRIBUTE_INITRWND "initrwnd"
#define NM_IP_ROUTE_ATTRIBUTE_WINDOW "window" +NM_IP_ROUTE_ATTRIBUTE_LOCK_CWND
+#define NM_IP_ROUTE_ATTRIBUTE_LOCK_CWND "lock-cwnd"
#define NM_IP_ROUTE_ATTRIBUTE_CWND "cwnd" +NM_IP_ROUTE_ATTRIBUTE_LOCK_INITCWND
+#define NM_IP_ROUTE_ATTRIBUTE_LOCK_INITCWND "lock-initcwnd"
#define NM_IP_ROUTE_ATTRIBUTE_INITCWND "initcwnd" +NM_IP_ROUTE_ATTRIBUTE_LOCK_INITRWND
+#define NM_IP_ROUTE_ATTRIBUTE_LOCK_INITRWND "lock-initrwnd"
#define NM_IP_ROUTE_ATTRIBUTE_INITRWND "initrwnd" +NM_IP_ROUTE_ATTRIBUTE_LOCK_MTU
+#define NM_IP_ROUTE_ATTRIBUTE_LOCK_MTU "lock-mtu" ++
#define NM_IP_ROUTE_ATTRIBUTE_LOCK_WINDOW "lock-window" +NM_IP_ROUTE_ATTRIBUTE_ONLINK
+#define NM_IP_ROUTE_ATTRIBUTE_ONLINK "onlink"
#define NM_IP_ROUTE_ATTRIBUTE_LOCK_CWND "lock-cwnd" +NM_IP_ROUTE_ATTRIBUTE_SCOPE
+#define NM_IP_ROUTE_ATTRIBUTE_SCOPE "scope"
#define NM_IP_ROUTE_ATTRIBUTE_LOCK_INITCWND "lock-initcwnd" +NM_IP_ROUTE_ATTRIBUTE_SRC
+#define NM_IP_ROUTE_ATTRIBUTE_SRC "src"
#define NM_IP_ROUTE_ATTRIBUTE_LOCK_INITRWND "lock-initrwnd" +NM_IP_ROUTE_ATTRIBUTE_TABLE
+#define NM_IP_ROUTE_ATTRIBUTE_TABLE "table"
#define NM_IP_ROUTE_ATTRIBUTE_LOCK_MTU "lock-mtu" +NM_IP_ROUTE_ATTRIBUTE_TOS
+#define NM_IP_ROUTE_ATTRIBUTE_TOS "tos" ++
whether to allow parsing -IPv4 addresses.
+ IPv4 addresses.whether to allow parsing
-IPv6 addresses. If both NM_IP_ROUTING_RULE_AS_STRING_FLAGS_AF_INET
+ IPv6 addresses. If both NM_IP_ROUTING_RULE_AS_STRING_FLAGS_AF_INET
and
-NM_IP_ROUTING_RULE_AS_STRING_FLAGS_AF_INET6
+ NM_IP_ROUTING_RULE_AS_STRING_FLAGS_AF_INET6
are unset, it's the same
-as setting them both.
if set, ensure that the -rule verfies or fail.
+ rule verfies or fail.#define NM_SETTING_IP_CONFIG_METHOD "method" +#define NM_SETTING_IP_CONFIG_METHOD "method"
#define NM_SETTING_IP_CONFIG_DNS "dns" +#define NM_SETTING_IP_CONFIG_DNS "dns"
#define NM_SETTING_IP_CONFIG_DNS_SEARCH "dns-search" +#define NM_SETTING_IP_CONFIG_DNS_SEARCH "dns-search"
#define NM_SETTING_IP_CONFIG_DNS_OPTIONS "dns-options" +#define NM_SETTING_IP_CONFIG_DNS_OPTIONS "dns-options"
#define NM_SETTING_IP_CONFIG_DNS_PRIORITY "dns-priority" +#define NM_SETTING_IP_CONFIG_DNS_PRIORITY "dns-priority"
#define NM_SETTING_IP_CONFIG_ADDRESSES "addresses" +#define NM_SETTING_IP_CONFIG_ADDRESSES "addresses"
#define NM_SETTING_IP_CONFIG_GATEWAY "gateway" +#define NM_SETTING_IP_CONFIG_GATEWAY "gateway"
#define NM_SETTING_IP_CONFIG_ROUTES "routes" +#define NM_SETTING_IP_CONFIG_ROUTES "routes"
#define NM_SETTING_IP_CONFIG_ROUTE_METRIC "route-metric" +#define NM_SETTING_IP_CONFIG_ROUTE_METRIC "route-metric"
#define NM_SETTING_IP_CONFIG_ROUTE_TABLE "route-table" +#define NM_SETTING_IP_CONFIG_ROUTE_TABLE "route-table"
#define NM_SETTING_IP_CONFIG_IGNORE_AUTO_ROUTES "ignore-auto-routes" +#define NM_SETTING_IP_CONFIG_IGNORE_AUTO_ROUTES "ignore-auto-routes"
#define NM_SETTING_IP_CONFIG_IGNORE_AUTO_DNS "ignore-auto-dns" +#define NM_SETTING_IP_CONFIG_IGNORE_AUTO_DNS "ignore-auto-dns"
#define NM_SETTING_IP_CONFIG_DHCP_HOSTNAME "dhcp-hostname" +#define NM_SETTING_IP_CONFIG_DHCP_HOSTNAME "dhcp-hostname"
#define NM_SETTING_IP_CONFIG_DHCP_SEND_HOSTNAME "dhcp-send-hostname" +#define NM_SETTING_IP_CONFIG_DHCP_SEND_HOSTNAME "dhcp-send-hostname" ++
#define NM_SETTING_IP_CONFIG_DHCP_HOSTNAME_FLAGS "dhcp-hostname-flags"
#define NM_SETTING_IP_CONFIG_NEVER_DEFAULT "never-default" +#define NM_SETTING_IP_CONFIG_NEVER_DEFAULT "never-default"
#define NM_SETTING_IP_CONFIG_MAY_FAIL "may-fail" +#define NM_SETTING_IP_CONFIG_MAY_FAIL "may-fail"
#define NM_SETTING_IP_CONFIG_DAD_TIMEOUT "dad-timeout" +#define NM_SETTING_IP_CONFIG_DAD_TIMEOUT "dad-timeout"
#define NM_SETTING_IP_CONFIG_DHCP_TIMEOUT "dhcp-timeout" +#define NM_SETTING_IP_CONFIG_DHCP_TIMEOUT "dhcp-timeout" ++
typedef struct _NMSettingIPConfig NMSettingIPConfig;+
NMDhcpHostnameFlags describe flags related to the DHCP hostname and +FQDN.
+| + |
+ no flag set. The default value from
+ Networkmanager global configuration is used. If such value is unset
+ or still zero, the DHCP request will use standard FQDN flags, i.e.
+ |
++ |
| + |
+ whether the server should + do the A RR (FQDN-to-address) DNS updates. + |
++ |
| + |
+ if set, the FQDN is encoded + using canonical wire format. Otherwise it uses the deprecated + ASCII encoding. This flag is allowed only for DHCPv4. + |
++ |
| + |
+ when not set, request the
+ server to perform updates (the PTR RR and possibly the A RR
+ based on the |
++ |
| + |
+ when set, no FQDN flags are + sent in the DHCP FQDN option. When cleared and all other FQDN + flags are zero, standard FQDN flags are sent. This flag is + incompatible with any other FQDN flag. + |
++ |
Since: 1.22
+“dhcp-hostname-flags” property“dhcp-hostname-flags” guint+
Flags for the DHCP hostname and FQDN.
+Currently this property only includes flags to control the FQDN flags
+set in the DHCP FQDN option. Supported FQDN flags are
+NM_DHCP_HOSTNAME_FLAG_FQDN_SERV_UPDATE,
+NM_DHCP_HOSTNAME_FLAG_FQDN_ENCODED and
+NM_DHCP_HOSTNAME_FLAG_FQDN_NO_UPDATE. When no FQDN flag is set and
+NM_DHCP_HOSTNAME_FLAG_FQDN_CLEAR_FLAGS is set, the DHCP FQDN option will
+contain no flag. Otherwise, if no FQDN flag is set and
+NM_DHCP_HOSTNAME_FLAG_FQDN_CLEAR_FLAGS is not set, the standard FQDN flags
+are set in the request:
+NM_DHCP_HOSTNAME_FLAG_FQDN_SERV_UPDATE,
+NM_DHCP_HOSTNAME_FLAG_FQDN_ENCODED for IPv4 and
+NM_DHCP_HOSTNAME_FLAG_FQDN_SERV_UPDATE for IPv6.
When this property is set to the default value NM_DHCP_HOSTNAME_FLAG_NONE,
+a global default is looked up in NetworkManager configuration. If that value
+is unset or also NM_DHCP_HOSTNAME_FLAG_NONE, then the standard FQDN flags
+described above are sent in the DHCP requests.
Flags: Read / Write
+Default value: 0
+Since: 1.22
+“dhcp-iaid” property“dhcp-iaid” gchar *+
A string containing the "Identity Association Identifier" (IAID) used +by the DHCP client. The property is a 32-bit decimal value or a +special value among "mac", "perm-mac", "ifname" and "stable". When +set to "mac" (or "perm-mac"), the last 4 bytes of the current (or +permanent) MAC address are used as IAID. When set to "ifname", the +IAID is computed by hashing the interface name. The special value +"stable" can be used to generate an IAID based on the stable-id (see +connection.stable-id), a per-host key and the interface name. When +the property is unset, the value from global configuration is used; +if no global default is set then the IAID is assumed to be +"ifname". Note that at the moment this property is ignored for IPv6 +by dhclient, which always derives the IAID from the MAC address.
+Flags: Read / Write
+Default value: NULL
+Since: 1.22
+“dhcp-send-hostname” property“dhcp-send-hostname” gboolean
If TRUE, a hostname is sent to the DHCP server when acquiring a lease.
@@ -6341,6 +6668,6 @@ of NetworkManager.