From c333f062ddcba9b35330647bf6cbd0a07f2d786e Mon Sep 17 00:00:00 2001
From: Michael Biebl Creates a new NMIPAddress object. error location to store error, or location to store error, or the new NMIPAddress object, or the new NMIPAddress object, or [transfer full] Creates a new NMIPAddress object. error location to store error, or location to store error, or the new NMIPAddress object, or the new NMIPAddress object, or [transfer full]
-gboolean
+gboolean
nm_ip_address_equal ()
@@ -131,7 +131,7 @@
-guint
+guint
nm_ip_address_get_prefix ()
@@ -155,7 +155,7 @@
-GVariant *
+GVariant *
nm_ip_address_get_attribute ()
@@ -203,7 +203,7 @@
-gboolean
+gboolean
nm_ip_route_equal ()
@@ -258,7 +258,7 @@
-guint
+guint
nm_ip_route_get_prefix ()
@@ -289,7 +289,7 @@
-gboolean
+gboolean
nm_ip_route_get_next_hop_binary ()
@@ -305,7 +305,7 @@
-gint64
+gint64
nm_ip_route_get_metric ()
@@ -329,7 +329,7 @@
-GVariant *
+GVariant *
nm_ip_route_get_attribute ()
@@ -344,6 +344,21 @@
+
+const NMVariantAttributeSpec *const *
+
+
+nm_ip_route_get_variant_attribute_spec ()
+
+
+
+
+gboolean
+
+
+nm_ip_route_attribute_validate ()
+
+
const char *
@@ -352,7 +367,7 @@
-guint
+guint
nm_setting_ip_config_get_num_dns ()
@@ -367,7 +382,7 @@
-gboolean
+gboolean
nm_setting_ip_config_add_dns ()
@@ -383,7 +398,7 @@
-gboolean
+gboolean
nm_setting_ip_config_remove_dns_by_value ()
@@ -399,7 +414,7 @@
-guint
+guint
nm_setting_ip_config_get_num_dns_searches ()
@@ -414,7 +429,7 @@
-gboolean
+gboolean
nm_setting_ip_config_add_dns_search ()
@@ -430,7 +445,7 @@
-gboolean
+gboolean
nm_setting_ip_config_remove_dns_search_by_value ()
@@ -446,7 +461,7 @@
-guint
+guint
nm_setting_ip_config_get_num_dns_options ()
@@ -454,7 +469,7 @@
-gboolean
+gboolean
nm_setting_ip_config_has_dns_options ()
@@ -469,7 +484,7 @@
-gint
+gint
nm_setting_ip_config_next_valid_dns_option ()
@@ -477,7 +492,7 @@
-gboolean
+gboolean
nm_setting_ip_config_add_dns_option ()
@@ -493,7 +508,7 @@
-gboolean
+gboolean
nm_setting_ip_config_remove_dns_option_by_value ()
@@ -509,7 +524,7 @@
-gint
+gint
nm_setting_ip_config_get_dns_priority ()
@@ -517,7 +532,7 @@
-guint
+guint
nm_setting_ip_config_get_num_addresses ()
@@ -533,7 +548,7 @@
-gboolean
+gboolean
nm_setting_ip_config_add_address ()
@@ -549,7 +564,7 @@
-gboolean
+gboolean
nm_setting_ip_config_remove_address_by_value ()
@@ -572,7 +587,7 @@
-guint
+guint
nm_setting_ip_config_get_num_routes ()
@@ -588,7 +603,7 @@
-gboolean
+gboolean
nm_setting_ip_config_add_route ()
@@ -604,7 +619,7 @@
-gboolean
+gboolean
nm_setting_ip_config_remove_route_by_value ()
@@ -620,7 +635,7 @@
-gint64
+gint64
nm_setting_ip_config_get_route_metric ()
@@ -628,7 +643,7 @@
-gboolean
+gboolean
nm_setting_ip_config_get_ignore_auto_routes ()
@@ -636,7 +651,7 @@
-gboolean
+gboolean
nm_setting_ip_config_get_ignore_auto_dns ()
@@ -651,7 +666,7 @@
-gboolean
+gboolean
nm_setting_ip_config_get_dhcp_send_hostname ()
@@ -659,7 +674,7 @@
-gboolean
+gboolean
nm_setting_ip_config_get_never_default ()
@@ -667,7 +682,7 @@
-gboolean
+gboolean
nm_setting_ip_config_get_may_fail ()
@@ -675,7 +690,7 @@
-gint
+gint
nm_setting_ip_config_get_dad_timeout ()
@@ -683,7 +698,7 @@
-gint
+gint
nm_setting_ip_config_get_dhcp_timeout ()
@@ -703,91 +718,91 @@
-GPtrArray *
+GPtrArray *
addresses
Read / Write
-
gint
+gint
dad-timeout
Read / Write / Construct
-gchar *
+gchar *
dhcp-hostname
Read / Write
-
gboolean
+gboolean
dhcp-send-hostname
Read / Write / Construct
-
gint
+gint
dhcp-timeout
Read / Write
-
GStrv
+GStrv
dns
Read / Write
-
GStrv
+GStrv
dns-options
Read / Write
-
gint
+gint
dns-priority
Read / Write / Construct
-
GStrv
+GStrv
dns-search
Read / Write
-gchar *
+gchar *
gateway
Read / Write
-
gboolean
+gboolean
ignore-auto-dns
Read / Write / Construct
-
gboolean
+gboolean
ignore-auto-routes
Read / Write / Construct
-
gboolean
+gboolean
may-fail
Read / Write / Construct
-gchar *
+gchar *
method
Read / Write
-
gboolean
+gboolean
never-default
Read / Write / Construct
-
gint64
+gint64
route-metric
Read / Write / Construct
@@ -804,6 +819,58 @@
-GPtrArray *
+GPtrArray *
routes
Read / Write
+#define
+NM_IP_ROUTE_ATTRIBUTE_SRC
+
+
+#define
+NM_IP_ROUTE_ATTRIBUTE_FROM
+
+
+#define
+NM_IP_ROUTE_ATTRIBUTE_TOS
+
+
+#define
+NM_IP_ROUTE_ATTRIBUTE_WINDOW
+
+
+#define
+NM_IP_ROUTE_ATTRIBUTE_CWND
+
+
+#define
+NM_IP_ROUTE_ATTRIBUTE_INITCWND
+
+
+#define
+NM_IP_ROUTE_ATTRIBUTE_INITRWND
+
+
+#define
+NM_IP_ROUTE_ATTRIBUTE_MTU
+
+
+#define
+NM_IP_ROUTE_ATTRIBUTE_LOCK_WINDOW
+
+
+#define
+NM_IP_ROUTE_ATTRIBUTE_LOCK_CWND
+
+
+#define
+NM_IP_ROUTE_ATTRIBUTE_LOCK_INITCWND
+
+
+#define
+NM_IP_ROUTE_ATTRIBUTE_LOCK_INITRWND
+
+
+#define
+NM_IP_ROUTE_ATTRIBUTE_LOCK_MTU
+
+
#define
NM_SETTING_IP_CONFIG_DAD_TIMEOUT_MAX
@@ -943,10 +1010,10 @@
Object Hierarchy
- GBoxed
+
GBoxed
├── NMIPAddress
╰── NMIPRoute
- GObject
+ GObject
╰── NMSetting
╰── NMSettingIPConfig
├── NMSettingIP4Config
@@ -971,8 +1038,8 @@ related to IP addressing, routing, and Domain Name Service.
NMIPAddress *
nm_ip_address_new (
+ int family,
const char *addr,
- guint prefix,
- GError **error);guint prefix,
+ GError **error);
@@ -1009,7 +1076,7 @@ nm_ip_address_new (
-
+NULLNULL
int fam
Returns
-NULL on error. NULL on error. int fam
nm_ip_address_new_binary ()
NMIPAddress *
nm_ip_address_new_binary (
+ int family,
- gconstpointer addr,
- guint prefix,
- GError **error);gconstpointer addr,
+ guint prefix,
+ GError **error);
addr
must point to a buffer of the
correct size for family
@@ -1052,7 +1119,7 @@ correct size for family
@@ -1060,7 +1127,7 @@ correct size for
-
+NULLNULL
family
Returns
-NULL on error. NULL on error.
gboolean +gboolean nm_ip_address_equal (NMIPAddress *address,NMIPAddress *other);Determines if two NMIPAddress objects contain the same address and prefix @@ -1142,7 +1209,7 @@ to.
TRUE if the objects contain the same values, FALSE if they do not.
TRUE if the objects contain the same values, FALSE if they do not.
void nm_ip_address_get_address_binary (+NMIPAddress *address, -gpointer addr);
gpointer addr);
Gets the IP address property of this address object.
Sets the IP address property of this address object. Gets the IP address prefix (ie "24" or "30" etc) property of this address
object. Sets the IP address prefix property of this address object. a a [transfer full] Gets the value of the attribute with name [transfer none] Sets or clears the named attribute on Creates a new NMIPRoute object. next_hop the IP address of the next hop (or the IP address of the next hop (or error location to store error, or location to store error, or Creates a new NMIPRoute object. next_hop the IP address of the next hop (or the IP address of the next hop (or error location to store error, or location to store error, or the new NMIPRoute object, or the new NMIPRoute object, or [transfer full] Determines if two NMIPRoute objects contain the same destination, prefix,
@@ -1694,7 +1761,7 @@ to. Gets the destination property of this route object. Sets the destination property of this route object. Gets the IP prefix (ie "24" or "30" etc) of this route. Sets the prefix property of this route object. Gets the IP address of the next hop of this route; this will be Gets the IP address of the next hop of this route; this will be the IP address of the next hop, or the IP address of the next hop, or Sets the next-hop property of this route object. Gets the next hop property of this route object. Sets the destination property of this route object. [skip] Gets the route metric property of this route object; lower values
indicate "better" or more preferred routes; -1 indicates "default"
@@ -2108,7 +2175,7 @@ indicate "better" or more preferred routes; -1 indicates "default"
Sets the metric property of this route object. a a [transfer full] Gets the value of the attribute with name [transfer none] Sets the named attribute on Since: 1.8 Validates a route attribute, i.e. checks that the attribute is a known one
+and the value is of the correct type and well-formed. name the attribute name value the attribute value family IP address family of the route known on return, whether the attribute name is a known one. error return location for a GError, or Since: 1.8 Adds a new DNS server to the setting. Adds a new DNS search domain to the setting. NMSettingIPConfig can have a list of dns-options. If the list
is empty, there are two similar (but differentiated) states.
@@ -2698,7 +2831,7 @@ a default configuration, while the former explicitly means "no-options".addr
must point to a buffer that is the correct size for address
@@ -1300,7 +1367,7 @@ nm_ip_address_get_address_binary (nm_ip_address_set_address_binary ()
void
nm_ip_address_set_address_binary (
+ NMIPAddress *address,
- gconstpointer addr);gconstpointer addr);
addr
must point to a buffer that is the correct size for address
@@ -1332,7 +1399,7 @@ nm_ip_address_set_address_binary (
nm_ip_address_get_prefix ()
-guint
+
guint
nm_ip_address_get_prefix (
NMIPAddress *address);nm_ip_address_set_prefix ()
void
nm_ip_address_set_prefix (
+ NMIPAddress *address,
- guint prefix);guint prefix);Parameters
@@ -1410,14 +1477,14 @@ nm_ip_address_get_attribute_names (
Returns
-NULL-terminated array of attribute names,. NULL-terminated array of attribute names,.
nm_ip_address_get_attribute ()
-GVariant *
+
GVariant *
nm_ip_address_get_attribute (
NMIPAddress *address,
const char *name);name
@@ -1450,7 +1517,7 @@ nm_ip_address_get_attribute (
on
nameaddress
-, or NULL if address
+, or NULL if address
has no such attribute. void
nm_ip_address_set_attribute (
+ NMIPAddress *address,
const char *name,
- GVariant *value);GVariant *value);
address
to the given value.NMIPRoute *
nm_ip_route_new (int family,
const char *dest,
- guint prefix,
+ guint prefix,
const char *next_hop,
- gint64 metric,
- GError **error);
+ gint64 metric,
+ GError **error);
Parameters
@@ -1530,7 +1597,7 @@ nm_ip_route_new (int famil
-
+NULL). NULL). [allow-none]
@@ -1540,7 +1607,7 @@ nm_ip_route_new (
int famil
@@ -1548,7 +1615,7 @@ nm_ip_route_new (
-
+NULLNULL
int famil
int famil
nm_ip_route_new_binary ()
NMIPRoute *
nm_ip_route_new_binary (
+ int family,
- gconstpointer dest,
- guint prefix,
- gconstpointer next_hop,
- gint64 metric,
- GError **error);gconstpointer dest,
+ guint prefix,
+ gconstpointer next_hop,
+ gint64 metric,
+ GError **error);
dest
and next_hop
- (if non-NULL) must
+ (if non-NULL) must
point to buffers of the correct size for family
.family
-
+NULL). NULL). [allow-none]
@@ -1604,7 +1671,7 @@ point to buffers of the correct size for family
@@ -1612,7 +1679,7 @@ point to buffers of the correct size for
-
+NULLNULL
family
Returns
-NULL on error. NULL on error.
nm_ip_route_equal ()
-gboolean
+
gboolean
nm_ip_route_equal (
NMIPRoute *route,
NMIPRoute *other);Returns
-TRUE if the objects contain the same values, FALSE if they do not.TRUE if the objects contain the same values, FALSE if they do not.
@@ -1818,7 +1885,7 @@ have a valid address, use nm_ip_route_get_dest_binary ()
void
nm_ip_route_get_dest_binary (
+ NMIPRoute *route,
- gpointer dest);gpointer dest);
dest
must point to a buffer that is the correct size for route
@@ -1852,7 +1919,7 @@ nm_ip_route_get_dest_binary (nm_ip_route_set_dest_binary ()
void
nm_ip_route_set_dest_binary (
+ NMIPRoute *route,
- gconstpointer dest);gconstpointer dest);
dest
must point to a buffer that is the correct size for route
@@ -1884,7 +1951,7 @@ nm_ip_route_set_dest_binary (
nm_ip_route_get_prefix ()
-guint
+
guint
nm_ip_route_get_prefix (
NMIPRoute *route);nm_ip_route_set_prefix ()
void
nm_ip_route_set_prefix (
+ NMIPRoute *route,
- guint prefix);guint prefix);
Parameters
@@ -1942,7 +2009,7 @@ nm_ip_route_set_prefix (nm_ip_route_get_next_hop ()
const char *
nm_ip_route_get_next_hop (
-NMIPRoute *route);NULL if the
+NULL if the
route has no next hop.Returns
-NULL if this is a device route.NULL if this is a device route.
@@ -1972,7 +2039,7 @@ nm_ip_route_set_next_hop ();
const char *next_hopnext_hop
- (if non-NULL) must be a valid address of route
+ (if non-NULL) must be a valid address of route
's family. If you
aren't sure you have a valid address, use nm_utils_ipaddr_valid() to check
it.
nm_ip_route_get_next_hop_binary ()
-gboolean
+
gboolean
nm_ip_route_get_next_hop_binary (
+ NMIPRoute *route,
- gpointer next_hop);gpointer next_hop);next_hop
must point to a buffer that is the correct size for route
@@ -2034,8 +2101,8 @@ nm_ip_route_get_next_hop_binary (
@@ -2045,10 +2112,10 @@ will be zeroed out)nm_ip_route_set_next_hop_binary ()
void
nm_ip_route_set_next_hop_binary (
+ NMIPRoute *route,
- gconstpointer next_hop);gconstpointer next_hop);
next_hop
- (if non-NULL) must point to a buffer that is the correct size for
+ (if non-NULL) must point to a buffer that is the correct size for
route
's family.
nm_ip_route_get_metric ()
-gint64
+
gint64
nm_ip_route_get_metric (
NMIPRoute *route);nm_ip_route_set_metric ()
void
nm_ip_route_set_metric (
+ NMIPRoute *route,
- gint64 metric);gint64 metric);Parameters
@@ -2157,14 +2224,14 @@ nm_ip_route_get_attribute_names (
Returns
-NULL-terminated array of attribute names. NULL-terminated array of attribute names.
nm_ip_route_get_attribute ()
-GVariant *
+
GVariant *
nm_ip_route_get_attribute (
NMIPRoute *route,
const char *name);name
@@ -2197,7 +2264,7 @@ nm_ip_route_get_attribute (
on
nameroute
-, or NULL if route
+, or NULL if route
has no such attribute. void
nm_ip_route_set_attribute (
+ NMIPRoute *route,
const char *name,
- GVariant *value);GVariant *value);
route
to the given value.
+nm_ip_route_get_variant_attribute_spec ()
+const NMVariantAttributeSpec *const *
+nm_ip_route_get_variant_attribute_spec
+ (
+
+void);
+nm_ip_route_attribute_validate ()
+gboolean
+nm_ip_route_attribute_validate (
+const char *name,
+ GVariant *value,
+ int family,
+ gboolean *known,
+ GError **error);Parameters
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+[out]
+
+
+
+
+
+NULL. [allow-none]
+
+nm_setting_ip_config_get_method ()
const char *
nm_setting_ip_config_get_method (
@@ -2269,7 +2402,7 @@ methods available with each type.
NMSettingIPConfig *setting);
nm_setting_ip_config_get_num_dns ()
-guint
+
guint
nm_setting_ip_config_get_num_dns (
NMSettingIPConfig *setting);Parameters
@@ -2328,7 +2461,7 @@ nm_setting_ip_config_get_dns (
nm_setting_ip_config_add_dns ()
-gboolean
+
gboolean
nm_setting_ip_config_add_dns (
NMSettingIPConfig *setting,
const char *dns);
Returns
-TRUE if the DNS server was added; FALSE if the server was already
+TRUE if the DNS server was added; FALSE if the server was already
known
nm_setting_ip_config_remove_dns_by_value ()
-gboolean
+
gboolean
nm_setting_ip_config_remove_dns_by_value
(
@@ -2424,7 +2557,7 @@ nm_setting_ip_config_remove_dns_by_value
NMSettingIPConfig *setting,
const char *dns);
@@ -2452,7 +2585,7 @@ nm_setting_ip_config_clear_dns (
nm_setting_ip_config_get_num_dns_searches ()
-guint
+
guint
nm_setting_ip_config_get_num_dns_searches
(
NMSettingIPConfig *setting);
nm_setting_ip_config_add_dns_search ()
-gboolean
+
gboolean
nm_setting_ip_config_add_dns_search (
NMSettingIPConfig *setting,
const char *dns_search);
nm_setting_ip_config_remove_dns_search_by_value ()
-gboolean
+
gboolean
nm_setting_ip_config_remove_dns_search_by_value
(
@@ -2609,7 +2742,7 @@ nm_setting_ip_config_remove_dns_search_by_value
NMSettingIPConfig *setting,
const char *dns_search);
nm_setting_ip_config_get_num_dns_options ()
-guint
+
guint
nm_setting_ip_config_get_num_dns_options
(
NMSettingIPConfig *setting);
nm_setting_ip_config_has_dns_options ()
-gboolean
+
gboolean
nm_setting_ip_config_has_dns_options (
NMSettingIPConfig *setting);nm_setting_ip_config_get_dns_option ()
const char *
nm_setting_ip_config_get_dns_option (
+ NMSettingIPConfig *setting,
- guint idx);guint idx);Parameters