a copy of route This API was part of public headers before 1.32.0 but was erroneously not exported in the ABI. It is thus only usable since 1.32.0.
Determines if two NM.IPRoute objects contain the same destination, prefix, next hop, and metric. (Attributes are not compared.)
the NM.IPRoute to compare route to.
true if the objects contain the same values, false if they do not.
Determines if two NM.IPRoute objects contain the same destination, prefix, next hop, and metric.
the NM.IPRoute 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.
true if the objects contain the same values, false if they do not.
Gets an array of attribute names defined on route.
a null-terminated array of attribute names
Gets the IP destination address property of this route object.
the IP address of the route's destination
Gets the IP address family (eg, AF_INET) property of this route object.
the IP address family
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).
the route metric
Gets the IP address of the next hop of this route; this will be null if the
route has no next hop.
the IP address of the next hop, or null if this is a device route.
Gets the IP prefix (ie "24" or "30" etc) of this route.
the IP prefix
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_inet_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.
Optionalnext_hop: stringthe 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.
Staticattribute_Staticget_StaticnewStaticnew_
Creates a copy of
route