IPRoutingRule
Object Hierarchy:
Description:
[ CCode ( ref_function = "nm_ip_routing_rule_ref" , type_id = "nm_ip_routing_rule_get_type ()" , unref_function = "nm_ip_routing_rule_unref" ) ]
[ Compact ]
public class IPRoutingRule
[ Compact ]
public class IPRoutingRule
Namespace: NM
Package: libnm
Content:
Static methods:
- public static IPRoutingRule from_string (string str, IPRoutingRuleAsStringFlags to_string_flags, HashTable<void*,void*>? extra_args) throws Error
Creation methods:
- public IPRoutingRule (int addr_family)
Methods:
- public IPRoutingRule @ref ()
Increases the reference count of the instance.
- public int cmp (IPRoutingRule? other)
- public uint8 get_action ()
- public int get_addr_family ()
- public uint16 get_destination_port_end ()
- public uint16 get_destination_port_start ()
- public unowned string get_from ()
- public uint8 get_from_len ()
- public uint32 get_fwmark ()
- public uint32 get_fwmask ()
- public unowned string get_iifname ()
- public bool get_invert ()
- public uint8 get_ipproto ()
- public unowned string get_oifname ()
- public int64 get_priority ()
- public uint16 get_source_port_end ()
- public uint16 get_source_port_start ()
- public int32 get_suppress_prefixlength ()
- public uint32 get_table ()
- public unowned string get_to ()
- public uint8 get_to_len ()
- public uint8 get_tos ()
- public bool get_uid_range (out uint32 out_range_start, out uint32 out_range_end)
- public bool is_sealed ()
- public IPRoutingRule new_clone ()
Since 1.42, ref-counting of IPRoutingRule is thread-safe.
- public void seal ()
Seals the routing rule.
- public void set_action (uint8 action)
Note that currently only certain actions are allowed.
- public void set_destination_port (uint16 start, uint16 end)
- public void set_from (string? from, uint8 len)
Setting invalid values is accepted, but will later fail during validate.
- public void set_fwmark (uint32 fwmark, uint32 fwmask)
- public void set_iifname (string? iifname)
The name supports C backslash escaping for non-UTF-8 characters.
- public void set_invert (bool invert)
- public void set_ipproto (uint8 ipproto)
- public void set_oifname (string? oifname)
The name supports C backslash escaping for non-UTF-8 characters.
- public void set_priority (int64 priority)
A valid priority ranges from 0 to g_maxuint32 .
- public void set_source_port (uint16 start, uint16 end)
- public void set_suppress_prefixlength (int32 suppress_prefixlength)
- public void set_table (uint32 table)
- public void set_to (string? to, uint8 len)
Setting invalid values is accepted, but will later fail during validate.
- public void set_tos (uint8 tos)
- public void set_uid_range (uint32 uid_range_start, uint32 uid_range_end)
For a valid range, start must be less or equal to end.
- public string to_string (IPRoutingRuleAsStringFlags to_string_flags, HashTable<void*,void*>? extra_args) throws Error
- public void unref ()
Decreases the reference count of the instance and destroys the instance if the reference count reaches zero.
- public bool validate () throws Error