Optionalother: IPRoutingRulezero, a positive, or a negative integer to indicate equality or how the arguments compare.
the set action.
the address family of the rule. Either AF_INET or AF_INET6.
the destination port end setting.
the destination port start setting.
the set from/src parameter or null, if no value is set.
the set prefix length for the from/src parameter.
the fwmark setting.
the fwmask setting.
the set iifname or null if unset.
the "invert" setting of the rule.
the ipproto of the rule.
the set oifname or null if unset.
the priority. A valid priority is in the range from 0 to G_MAXUINT32. If unset, -1 is returned.
the source port end setting.
the source port start setting.
the suppress_prefixlength of the rule. -1 means that the value is unset.
the set table.
the set to/dst parameter or null, if no value is set.
the set prefix length for the to/dst parameter.
the tos of the rule.
true if a uid range is set. This API was wrongly introduced in the header files for 1.32, but the symbols were not exported. The API only works since 1.34 and newer.
whether self is sealed. Once sealed, an instance cannot be modified nor unsealed.
Since 1.42, ref-counting of NM.IPRoutingRule is thread-safe.
a newly created rule instance with the same settings as rule. Note that the instance will always be unsealed.
Increases the reference count of the instance.
the self argument with incremented reference count. Since 1.42, ref-counting of NM.IPRoutingRule is thread-safe.
Seals the routing rule. Afterwards, the instance can no longer be
modified, and it is a bug to call any of the accessors that would
modify the rule. If self was already sealed, this has no effect.
Note that currently only certain actions are allowed. nm_ip_routing_rule_validate()
will reject unsupported actions as invalid.
the action to set
the start port to set.
the end port to set.
Setting invalid values is accepted, but will later fail
during nm_ip_routing_rule_validate().
the from/src address to set. The address family must match.
the corresponding prefix length of the address.
the fwmark
the fwmask
The name supports C backslash escaping for non-UTF-8 characters.
Note that nm_ip_routing_rule_from_string() too uses backslash
escaping when tokenizing the words by whitespace. So, in string
representation you'd get double backslashes.
Optionaliifname: stringthe iifname to set or null to unset.
the new value to set
the ipproto to set
The name supports C backslash escaping for non-UTF-8 characters.
Note that nm_ip_routing_rule_from_string() too uses backslash
escaping when tokenizing the words by whitespace. So, in string
representation you'd get double backslashes.
Optionaloifname: stringthe oifname to set or null to unset.
A valid priority ranges from 0 to G_MAXUINT32. "-1" is also allowed
to reset the priority. It is a bug calling this function with any
other value.
the priority to set
the start port to set.
the end port to set.
the suppress_prefixlength to set. The value -1 means unset.
the table to set
Setting invalid values is accepted, but will later fail
during nm_ip_routing_rule_validate().
the to/dst address to set. The address family must match.
the corresponding prefix length of the address. If to is null, this valid is ignored.
the tos to set
For a valid range, start must be less or equal to end. If set to an invalid range, the range gets unset.
This API was wrongly introduced in the header files for 1.32, but the symbols were not exported. The API only works since 1.34 and newer.
the uid_range start to set.
the uid_range start to set.
NM.IPRoutingRuleAsStringFlags for controlling the string conversion.
Optionalextra_args: GLib.HashTable<any, any>extra arguments for controlling the string conversion. Currently, not extra arguments are supported.
the string representation or null on error.
Decreases the reference count of the instance and destroys the instance if the reference count reaches zero.
Since 1.42, ref-counting of NM.IPRoutingRule is thread-safe.
true if the rule validates.
Staticfrom_the string representation to convert to an NM.IPRoutingRule
NM.IPRoutingRuleAsStringFlags for controlling the string conversion.
Optionalextra_args: GLib.HashTable<any, any>extra arguments for controlling the string conversion. Currently, not extra arguments are supported.
Staticnew
the other NM.IPRoutingRule instance to compare