IPRoute
Object Hierarchy:
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
[ Compact ]
public class IPRoute
Namespace: NM
Package: libnm
Content:
Static methods:
- public static bool attribute_validate (string name, Variant value, int family, out bool known) throws Error
- public static unowned VariantAttributeSpec get_variant_attribute_spec ()
Creation methods:
- public IPRoute (int family, string dest, uint prefix, string? next_hop, int64 metric) throws Error
Creates a new IPRoute object.
- public IPRoute.binary (int family, void* dest, uint prefix, void* next_hop, int64 metric) throws Error
Creates a new IPRoute object.
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.