IPRoute
Object Hierarchy:
NM.IPRoute
NM.IPRoute
NM.IPRoute
Description:
[ CCode ( ref_function = "nm_ip_route_ref" , type_id = "nm_ip_route_get_type ()" , unref_function = "nm_ip_route_unref" ) ] [ Compact ]public class IPRoute
Content:
Static methods:
Creation methods:
Methods:
public void @ref ()
Increases the reference count of the object.
public IPRoute dup ()
Creates a copy of this
public bool equal (IPRoute other)
Determines if two IPRoute objects contain
the same destination, prefix, next hop, and metric.
public bool equal_full (IPRoute other, uint cmp_flags)
Determines if two IPRoute objects contain
the same destination, prefix, next hop, and metric.
public unowned Variant get_attribute (string name)
Gets the value of the attribute with name name
on
this
public string [] get_attribute_names ()
Gets an array of attribute names defined on
this .
public unowned string get_dest ()
Gets the IP destination address property of this route object.
public int get_family ()
Gets the IP address family (eg, AF_INET) property of this route
object.
public int64 get_metric ()
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).
public unowned string get_next_hop ()
Gets the IP address of the next hop of this route; this will be
null if the route has no next hop.
public uint get_prefix ()
Gets the IP prefix (ie "24" or "30" etc) of this route.
public void set_attribute (string name, Variant ? value)
Sets the named attribute on this to
the given value.
public void set_dest (string dest)
Sets the destination property of this route object.
public void set_metric (int64 metric)
Sets the metric property of this route object.
public void set_next_hop (string ? next_hop)
Sets the next-hop property of this route object.
public void set_prefix (uint prefix)
Sets the prefix property of this route object.
public void unref ()
Decreases the reference count of the object.