summaryrefslogtreecommitdiff
path: root/src/network/networkd-routing-policy-rule.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-09-29 15:29:56 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-10-07 02:36:29 +0900
commitca183bf8fd875499c65ef69b4b49e62c381daccc (patch)
tree2d8ee8d3710c270425e0834318c5403ec0bebe4b /src/network/networkd-routing-policy-rule.h
parent02e9f4e536f79e8966ea638cd969d3d593f176e7 (diff)
downloadsystemd-ca183bf8fd875499c65ef69b4b49e62c381daccc.tar.gz
network: drop list of static routing policy rules
[RoutingPolicyRule] sections are managed by both LIST and Hashmap. Let's drop list.
Diffstat (limited to 'src/network/networkd-routing-policy-rule.h')
-rw-r--r--src/network/networkd-routing-policy-rule.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/network/networkd-routing-policy-rule.h b/src/network/networkd-routing-policy-rule.h
index 143711623f..431a3b6724 100644
--- a/src/network/networkd-routing-policy-rule.h
+++ b/src/network/networkd-routing-policy-rule.h
@@ -2,25 +2,20 @@
#pragma once
#include <inttypes.h>
-#include <netinet/in.h>
#include <linux/fib_rules.h>
#include <stdbool.h>
+#include <stdio.h>
-#include "in-addr-util.h"
#include "conf-parser.h"
-
-typedef struct RoutingPolicyRule RoutingPolicyRule;
-
-#include "networkd-link.h"
-#include "networkd-network.h"
+#include "in-addr-util.h"
#include "networkd-util.h"
+#include "set.h"
typedef struct Network Network;
typedef struct Link Link;
-typedef struct NetworkConfigSection NetworkConfigSection;
typedef struct Manager Manager;
-struct RoutingPolicyRule {
+typedef struct RoutingPolicyRule {
Manager *manager;
Network *network;
Link *link;
@@ -52,9 +47,7 @@ struct RoutingPolicyRule {
struct fib_rule_uid_range uid_range;
int suppress_prefixlen;
-
- LIST_FIELDS(RoutingPolicyRule, rules);
-};
+} RoutingPolicyRule;
int routing_policy_rule_new(RoutingPolicyRule **ret);
RoutingPolicyRule *routing_policy_rule_free(RoutingPolicyRule *rule);