summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-route.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-10-02 03:55:06 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-10-06 19:44:43 +0200
commite2263711ba066e4275e6d9138dc10de86d9b08b0 (patch)
tree343fe65dfb347bc36129d70d2adece8dc5408820 /src/network/networkd-route.h
parentnetwork: drop list of static routes (diff)
downloadsystemd-e2263711ba066e4275e6d9138dc10de86d9b08b0.tar.xz
systemd-e2263711ba066e4275e6d9138dc10de86d9b08b0.zip
network: cleanup networkd-route.h
Diffstat (limited to 'src/network/networkd-route.h')
-rw-r--r--src/network/networkd-route.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/network/networkd-route.h b/src/network/networkd-route.h
index 676bea3d70..ac545d9b78 100644
--- a/src/network/networkd-route.h
+++ b/src/network/networkd-route.h
@@ -1,15 +1,20 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
-#include "conf-parser.h"
-#include "macro.h"
+#include <inttypes.h>
+#include <stdbool.h>
+#include <stdio.h>
-typedef struct Route Route;
-typedef struct NetworkConfigSection NetworkConfigSection;
+#include "sd-netlink.h"
-#include "networkd-network.h"
+#include "conf-parser.h"
+#include "in-addr-util.h"
+#include "networkd-link.h"
#include "networkd-util.h"
+typedef struct Manager Manager;
+typedef struct Network Network;
+
typedef struct MultipathRouteVia {
uint16_t family;
union in_addr_union address;
@@ -21,7 +26,7 @@ typedef struct MultipathRoute {
uint32_t weight;
} MultipathRoute;
-struct Route {
+typedef struct Route {
Network *network;
NetworkConfigSection *section;
@@ -58,7 +63,7 @@ struct Route {
usec_t lifetime;
sd_event_source *expire;
-};
+} Route;
void route_hash_func(const Route *route, struct siphash *state);
int route_compare_func(const Route *a, const Route *b);