summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-routing-policy-rule.h
diff options
context:
space:
mode:
authorSlava Bacherikov <slava@bacher09.org>2021-11-04 17:54:49 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-11-15 17:54:07 +0100
commitaf493fb742bece2cafcdbab9238c711ac9090c9f (patch)
treee40dd3e6eeec3bfc695f435262bbbc5ca34dd0ff /src/network/networkd-routing-policy-rule.h
parentnetwork: change link group type to int32 (diff)
downloadsystemd-af493fb742bece2cafcdbab9238c711ac9090c9f.tar.xz
systemd-af493fb742bece2cafcdbab9238c711ac9090c9f.zip
network: Add SuppressInterfaceGroup= into routing policy
This adds SuppressInterfaceGroup= option in the [RoutingPolicyRule] section which has the same semantics as suppress_ifgroup in `ip rule` command.
Diffstat (limited to 'src/network/networkd-routing-policy-rule.h')
-rw-r--r--src/network/networkd-routing-policy-rule.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/networkd-routing-policy-rule.h b/src/network/networkd-routing-policy-rule.h
index 89f49fcb86..ac65fe8af4 100644
--- a/src/network/networkd-routing-policy-rule.h
+++ b/src/network/networkd-routing-policy-rule.h
@@ -51,6 +51,7 @@ typedef struct RoutingPolicyRule {
struct fib_rule_uid_range uid_range;
int suppress_prefixlen;
+ int32_t suppress_ifgroup;
} RoutingPolicyRule;
RoutingPolicyRule *routing_policy_rule_free(RoutingPolicyRule *rule);
@@ -88,4 +89,5 @@ CONFIG_PARSER_PROTOTYPE(config_parse_routing_policy_rule_invert);
CONFIG_PARSER_PROTOTYPE(config_parse_routing_policy_rule_family);
CONFIG_PARSER_PROTOTYPE(config_parse_routing_policy_rule_uid_range);
CONFIG_PARSER_PROTOTYPE(config_parse_routing_policy_rule_suppress_prefixlen);
+CONFIG_PARSER_PROTOTYPE(config_parse_routing_policy_rule_suppress_ifgroup);
CONFIG_PARSER_PROTOTYPE(config_parse_routing_policy_rule_type);