the IP address family (
the IP address of the route's destination
the address prefix length
the IP address of the next hop (or %NULL)
the route metric (or -1 for "default")
Creates a copy of route
Determines if two #NMIPRoute objects contain the same destination, prefix, next hop, and metric. (Attributes are not compared.)
the #NMIPRoute to compare route
to.
Determines if two #NMIPRoute objects contain the same destination, prefix, next hop, and metric.
the #NMIPRoute to compare route
to.
tune how to compare attributes. Currently, only NM_IP_ROUTE_EQUAL_CMP_FLAGS_NONE (0) and NM_IP_ROUTE_EQUAL_CMP_FLAGS_WITH_ATTRS (1) is supported.
Gets an array of attribute names defined on route
.
Gets the IP destination address property of this route object.
Gets the IP address family (eg, AF_INET) property of this route object.
Gets the route metric property of this route object; lower values indicate "better" or more preferred routes; -1 indicates "default" (meaning NetworkManager will set it appropriately).
Gets the IP address of the next hop of this route; this will be %NULL if the route has no next hop.
Gets the IP prefix (ie "24" or "30" etc) of this route.
Increases the reference count of the object.
Sets the destination property of this route object.
dest
must be a valid address of route'
s family. If you aren't sure you
have a valid address, use nm_utils_ipaddr_is_valid() to check it.
the route's destination, as a string
Sets the metric property of this route object.
the route metric (or -1 for "default")
Sets the next-hop property of this route object.
next_hop
(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.
the route's next hop, as a string
Sets the prefix property of this route object.
the route prefix
Decreases the reference count of the object. If the reference count reaches zero, the object will be destroyed.
Creates a new #NMIPRoute object.
the IP address family (
the IP address of the route's destination
the address prefix length
the IP address of the next hop (or %NULL)
the route metric (or -1 for "default")
Creates a new #NMIPRoute object. dest
and next_hop
(if non-%NULL) must
point to buffers of the correct size for family
.
the IP address family (
the IP address of the route's destination
the address prefix length
the IP address of the next hop (or %NULL)
the route metric (or -1 for "default")
Creates a new #NMIPRoute object.