From afcd268ea7b1149fbfb66bce4eca659b675da0a2 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 ()
@@ -211,7 +211,7 @@
-gboolean
+gboolean
nm_ip_route_equal_full ()
@@ -266,7 +266,7 @@
-guint
+guint
nm_ip_route_get_prefix ()
@@ -297,7 +297,7 @@
-gboolean
+gboolean
nm_ip_route_get_next_hop_binary ()
@@ -313,7 +313,7 @@
-gint64
+gint64
nm_ip_route_get_metric ()
@@ -337,7 +337,7 @@
-GVariant *
+GVariant *
nm_ip_route_get_attribute ()
@@ -360,7 +360,7 @@
-gboolean
+gboolean
nm_ip_route_attribute_validate ()
@@ -375,7 +375,7 @@
-guint
+guint
nm_setting_ip_config_get_num_dns ()
@@ -390,7 +390,7 @@
-gboolean
+gboolean
nm_setting_ip_config_add_dns ()
@@ -406,7 +406,7 @@
-gboolean
+gboolean
nm_setting_ip_config_remove_dns_by_value ()
@@ -422,7 +422,7 @@
-guint
+guint
nm_setting_ip_config_get_num_dns_searches ()
@@ -437,7 +437,7 @@
-gboolean
+gboolean
nm_setting_ip_config_add_dns_search ()
@@ -453,7 +453,7 @@
-gboolean
+gboolean
nm_setting_ip_config_remove_dns_search_by_value ()
@@ -469,7 +469,7 @@
-guint
+guint
nm_setting_ip_config_get_num_dns_options ()
@@ -477,7 +477,7 @@
-gboolean
+gboolean
nm_setting_ip_config_has_dns_options ()
@@ -492,7 +492,7 @@
-gint
+gint
nm_setting_ip_config_next_valid_dns_option ()
@@ -500,7 +500,7 @@
-gboolean
+gboolean
nm_setting_ip_config_add_dns_option ()
@@ -516,7 +516,7 @@
-gboolean
+gboolean
nm_setting_ip_config_remove_dns_option_by_value ()
@@ -532,7 +532,7 @@
-gint
+gint
nm_setting_ip_config_get_dns_priority ()
@@ -540,7 +540,7 @@
-guint
+guint
nm_setting_ip_config_get_num_addresses ()
@@ -556,7 +556,7 @@
-gboolean
+gboolean
nm_setting_ip_config_add_address ()
@@ -572,7 +572,7 @@
-gboolean
+gboolean
nm_setting_ip_config_remove_address_by_value ()
@@ -595,7 +595,7 @@
-guint
+guint
nm_setting_ip_config_get_num_routes ()
@@ -611,7 +611,7 @@
-gboolean
+gboolean
nm_setting_ip_config_add_route ()
@@ -627,7 +627,7 @@
-gboolean
+gboolean
nm_setting_ip_config_remove_route_by_value ()
@@ -643,7 +643,7 @@
-gint64
+gint64
nm_setting_ip_config_get_route_metric ()
@@ -651,7 +651,7 @@
-guint32
+guint32
nm_setting_ip_config_get_route_table ()
@@ -659,7 +659,7 @@
-gboolean
+gboolean
nm_setting_ip_config_get_ignore_auto_routes ()
@@ -667,7 +667,7 @@
-gboolean
+gboolean
nm_setting_ip_config_get_ignore_auto_dns ()
@@ -682,7 +682,7 @@
-gboolean
+gboolean
nm_setting_ip_config_get_dhcp_send_hostname ()
@@ -690,7 +690,7 @@
-gboolean
+gboolean
nm_setting_ip_config_get_never_default ()
@@ -698,7 +698,7 @@
-gboolean
+gboolean
nm_setting_ip_config_get_may_fail ()
@@ -706,7 +706,7 @@
-gint
+gint
nm_setting_ip_config_get_dad_timeout ()
@@ -714,7 +714,7 @@
-gint
+gint
nm_setting_ip_config_get_dhcp_timeout ()
@@ -734,96 +734,96 @@
-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
-
guint
+guint
route-table
Read / Write
@@ -856,6 +856,10 @@
-GPtrArray *
+GPtrArray *
routes
Read / Write
+#define
+NM_IP_ROUTE_ATTRIBUTE_ONLINK
+
+
#define
NM_IP_ROUTE_ATTRIBUTE_WINDOW
@@ -1039,10 +1043,10 @@
Object Hierarchy
- GBoxed
+
GBoxed
├── NMIPAddress
╰── NMIPRoute
- GObject
+ GObject
╰── NMSetting
╰── NMSettingIPConfig
├── NMSettingIP4Config
@@ -1067,8 +1071,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);
@@ -1105,7 +1109,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
@@ -1148,7 +1152,7 @@ correct size for family
@@ -1156,7 +1160,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 @@ -1238,7 +1242,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.
Returns
- a copy of address
+
a copy of address
.
[transfer full]
@@ -1362,7 +1366,7 @@ have a valid address, use nm_ip_address_get_address_binary ()
void
nm_ip_address_get_address_binary (NMIPAddress *address,
- gpointer addr);
+ gpointer addr);
Gets the IP address property of this address object.
addr
must point to a buffer that is the correct size for address
@@ -1396,7 +1400,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);
Sets the IP address property of this address object.
addr
must point to a buffer that is the correct size for address
@@ -1428,7 +1432,7 @@ nm_ip_address_set_address_binary (
nm_ip_address_get_prefix ()
-guint
+guint
nm_ip_address_get_prefix (NMIPAddress *address);
Gets the IP address prefix (ie "24" or "30" etc) property of this address
object.
@@ -1457,7 +1461,7 @@ object.
nm_ip_address_set_prefix ()
void
nm_ip_address_set_prefix (NMIPAddress *address,
- guint prefix);
+ guint prefix);
Sets the IP address prefix property of this address object.
nm_ip_address_get_attribute ()
-GVariant *
+GVariant *
nm_ip_address_get_attribute (NMIPAddress *address,
const char *name);
Gets the value of the attribute with name name
@@ -1543,10 +1547,10 @@ nm_ip_address_get_attribute (
Returns
- the value of the attribute with name name
+
the value of the attribute with name name
on
address
-, or NULL if address
+, or NULL if address
has no such attribute.
[transfer none]
@@ -1557,7 +1561,7 @@ has no such attribute.
void
nm_ip_address_set_attribute (NMIPAddress *address,
const char *name,
- GVariant *value);
+ GVariant *value);
Sets or clears the named attribute on address
to the given value.
@@ -1581,7 +1585,7 @@ nm_ip_address_set_attribute (value
- the value.
+the value.
[transfer none][allow-none]
@@ -1594,10 +1598,10 @@ nm_ip_address_set_attribute (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);
Creates a new NMIPRoute object.
Parameters
@@ -1626,7 +1630,7 @@ nm_ip_route_new (int famil
next_hop
- the IP address of the next hop (or NULL).
+the IP address of the next hop (or NULL).
[allow-none]
@@ -1636,7 +1640,7 @@ nm_ip_route_new (int famil
error
-location to store error, or NULL
+location to store error, or NULL
@@ -1644,7 +1648,7 @@ nm_ip_route_new (int famil
@@ -1653,14 +1657,14 @@ nm_ip_route_new (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);
Creates a new NMIPRoute object. dest
and next_hop
- (if non-NULL) must
+ (if non-NULL) must
point to buffers of the correct size for family
.
@@ -1690,7 +1694,7 @@ point to buffers of the correct size for family
next_hop
- the IP address of the next hop (or NULL).
+the IP address of the next hop (or NULL).
[allow-none]
@@ -1700,7 +1704,7 @@ point to buffers of the correct size for family
error
-location to store error, or NULL
+location to store error, or NULL
@@ -1708,7 +1712,7 @@ point to buffers of the correct size for family
Returns
- the new NMIPRoute object, or NULL on error.
+the new NMIPRoute object, or NULL on error.
[transfer full]
@@ -1760,7 +1764,7 @@ reaches zero, the object will be destroyed.
nm_ip_route_equal ()
-gboolean
+gboolean
nm_ip_route_equal (NMIPRoute *route,
NMIPRoute *other);
Determines if two NMIPRoute objects contain the same destination, prefix,
@@ -1790,16 +1794,16 @@ to.
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.
nm_ip_route_equal_full ()
-gboolean
+gboolean
nm_ip_route_equal_full (NMIPRoute *route,
NMIPRoute *other,
- guint cmp_flags);
+ guint cmp_flags);
Determines if two NMIPRoute objects contain the same destination, prefix,
next hop, and metric.
@@ -1834,7 +1838,7 @@ is supported.
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.
Since: 1.10
@@ -1862,7 +1866,7 @@ nm_ip_route_dup (
Returns
- a copy of route
+
a copy of route
.
[transfer full]
@@ -1959,7 +1963,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);
Gets the destination property of this route object.
dest
must point to a buffer that is the correct size for route
@@ -1993,7 +1997,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);
Sets the destination property of this route object.
dest
must point to a buffer that is the correct size for route
@@ -2025,7 +2029,7 @@ nm_ip_route_set_dest_binary (
nm_ip_route_get_prefix ()
-guint
+guint
nm_ip_route_get_prefix (NMIPRoute *route);
Gets the IP prefix (ie "24" or "30" etc) of this route.
@@ -2053,7 +2057,7 @@ nm_ip_route_get_prefix (nm_ip_route_set_prefix ()
void
nm_ip_route_set_prefix (NMIPRoute *route,
- guint prefix);
+ guint prefix);
Sets the prefix property of this route object.
Parameters
@@ -2083,7 +2087,7 @@ nm_ip_route_set_prefix (nm_ip_route_get_next_hop ()
const char *
nm_ip_route_get_next_hop (NMIPRoute *route);
-Gets the IP address of the next hop of this route; this will be NULL if the
+
Gets the IP address of the next hop of this route; this will be NULL if the
route has no next hop.
@@ -2113,7 +2117,7 @@ nm_ip_route_set_next_hop (const char *next_hop);
Sets the next-hop property of this route object.
next_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.
@@ -2133,7 +2137,7 @@ it.
next_hop
- the route's next hop, as a string.
+the route's next hop, as a string.
[allow-none]
@@ -2143,9 +2147,9 @@ 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);
Gets the next hop property of this route object.
next_hop
must point to a buffer that is the correct size for route
@@ -2175,8 +2179,8 @@ nm_ip_route_get_next_hop_binary (
@@ -2186,10 +2190,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);
Sets the destination property of this route object.
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.
[skip]
@@ -2219,7 +2223,7 @@ nm_ip_route_set_next_hop_binary (
nm_ip_route_get_metric ()
-gint64
+gint64
nm_ip_route_get_metric (NMIPRoute *route);
Gets the route metric property of this route object; lower values
indicate "better" or more preferred routes; -1 indicates "default"
@@ -2249,7 +2253,7 @@ indicate "better" or more preferred routes; -1 indicates "default"
nm_ip_route_set_metric ()
void
nm_ip_route_set_metric (NMIPRoute *route,
- gint64 metric);
+ gint64 metric);
Sets the metric property of this route object.
nm_ip_route_get_attribute ()
-GVariant *
+GVariant *
nm_ip_route_get_attribute (NMIPRoute *route,
const char *name);
Gets the value of the attribute with name name
@@ -2335,10 +2339,10 @@ nm_ip_route_get_attribute (
Returns
- the value of the attribute with name name
+
the value of the attribute with name name
on
route
-, or NULL if route
+, or NULL if route
has no such attribute.
[transfer none]
@@ -2349,7 +2353,7 @@ has no such attribute.
void
nm_ip_route_set_attribute (NMIPRoute *route,
const char *name,
- GVariant *value);
+ GVariant *value);
Sets the named attribute on route
to the given value.
@@ -2373,7 +2377,7 @@ nm_ip_route_set_attribute (value
- the value.
+the value.
[transfer none][allow-none]
@@ -2395,12 +2399,12 @@ nm_ip_route_get_variant_attribute_spec
nm_ip_route_attribute_validate ()
-gboolean
+gboolean
nm_ip_route_attribute_validate (const char *name,
- GVariant *value,
+ GVariant *value,
int family,
- gboolean *known,
- GError **error);
+ gboolean *known,
+ GError **error);
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.
@@ -2429,12 +2433,12 @@ and the value is of the correct type and well-formed.
known
- on return, whether the attribute name is a known one.
+on return, whether the attribute name is a known one.
[out]
error
-
+
[allow-none]
@@ -2442,7 +2446,7 @@ and the value is of the correct type and well-formed.
Since: 1.8
@@ -2476,7 +2480,7 @@ methods available with each type.
nm_setting_ip_config_get_num_dns ()
-guint
+guint
nm_setting_ip_config_get_num_dns (NMSettingIPConfig *setting);
Parameters
@@ -2535,7 +2539,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);
Adds a new DNS server to the setting.
@@ -2563,7 +2567,7 @@ nm_setting_ip_config_add_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
@@ -2601,7 +2605,7 @@ nm_setting_ip_config_remove_dns (
nm_setting_ip_config_remove_dns_by_value ()
-gboolean
+gboolean
nm_setting_ip_config_remove_dns_by_value
(NMSettingIPConfig *setting,
const char *dns);
@@ -2631,7 +2635,7 @@ nm_setting_ip_config_remove_dns_by_value
@@ -2659,7 +2663,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);
@@ -2719,7 +2723,7 @@ nm_setting_ip_config_get_dns_search (
nm_setting_ip_config_add_dns_search ()
-gboolean
+gboolean
nm_setting_ip_config_add_dns_search (NMSettingIPConfig *setting,
const char *dns_search);
Adds a new DNS search domain to the setting.
@@ -2747,7 +2751,7 @@ nm_setting_ip_config_add_dns_search (
@@ -2786,7 +2790,7 @@ nm_setting_ip_config_remove_dns_search
nm_setting_ip_config_remove_dns_search_by_value ()
-gboolean
+gboolean
nm_setting_ip_config_remove_dns_search_by_value
(NMSettingIPConfig *setting,
const char *dns_search);
@@ -2816,7 +2820,7 @@ nm_setting_ip_config_remove_dns_search_by_value
@@ -2846,7 +2850,7 @@ nm_setting_ip_config_clear_dns_searches
nm_setting_ip_config_get_num_dns_options ()
-guint
+guint
nm_setting_ip_config_get_num_dns_options
(NMSettingIPConfig *setting);
@@ -2873,7 +2877,7 @@ nm_setting_ip_config_get_num_dns_options
nm_setting_ip_config_has_dns_options ()
-gboolean
+gboolean
nm_setting_ip_config_has_dns_options (NMSettingIPConfig *setting);
NMSettingIPConfig can have a list of dns-options. If the list
is empty, there are two similar (but differentiated) states.
@@ -2897,7 +2901,7 @@ a default configuration, while the former explicitly means "no-options".
@@ -2905,7 +2909,7 @@ a default configuration, while the former explicitly means "no-options".
nm_setting_ip_config_get_dns_option ()
const char *
nm_setting_ip_config_get_dns_option (NMSettingIPConfig *setting,
- guint idx);
+ guint idx);
Parameters