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
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 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.
the iifname to set or %NULL to unset.
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.
the 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
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.
For a valid range, start must be less or equal to end. If set to an invalid range, the range gets unset.
the uid_range start to set.
the uid_range start to set.
Decreases the reference count of the instance and destroys the instance if the reference count reaches zero. This is not thread-safe.
Increases the reference count of the instance. This is not thread-safe.