]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: cleanup networkd-route.h
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 2 Oct 2020 01:55:06 +0000 (10:55 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 6 Oct 2020 17:44:43 +0000 (02:44 +0900)
src/network/networkd-ndisc.c
src/network/networkd-network-gperf.gperf
src/network/networkd-network.h
src/network/networkd-route.c
src/network/networkd-route.h

index 256f6cc659bc96052085cf4779d12633dca74b46..545574e12666c08d94efa70ea63c463032ebd097 100644 (file)
@@ -12,7 +12,6 @@
 #include "networkd-dhcp6.h"
 #include "networkd-manager.h"
 #include "networkd-ndisc.h"
-#include "networkd-route.h"
 #include "string-table.h"
 #include "string-util.h"
 #include "strv.h"
index 3b5056e105d1313060b92e6ca417dab8cc9130fd..1d899464d8ec4c752722baa3ec876de59b50f234 100644 (file)
@@ -22,6 +22,7 @@ _Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
 #include "networkd-neighbor.h"
 #include "networkd-nexthop.h"
 #include "networkd-radv.h"
+#include "networkd-route.h"
 #include "networkd-routing-policy-rule.h"
 #include "networkd-sriov.h"
 #include "qdisc.h"
index 847094170990fb75acbe62a61a38ea56100dafc8..c56c24656a73c675e046e8c75082b7aa9656aa46 100644 (file)
@@ -22,7 +22,6 @@
 #include "networkd-lldp-tx.h"
 #include "networkd-ndisc.h"
 #include "networkd-radv.h"
-#include "networkd-route.h"
 #include "networkd-util.h"
 #include "ordered-set.h"
 #include "resolve-util.h"
index 453a33e1cea6b17e7379811ed4e879c03df63706..e59f634fb172d207d2e7ef284928b001e30aa10b 100644 (file)
@@ -3,18 +3,14 @@
 #include <linux/icmpv6.h>
 
 #include "alloc-util.h"
-#include "conf-parser.h"
-#include "in-addr-util.h"
-#include "missing_network.h"
 #include "netlink-util.h"
 #include "networkd-ipv4ll.h"
 #include "networkd-manager.h"
-#include "networkd-ndisc.h"
+#include "networkd-network.h"
 #include "networkd-nexthop.h"
 #include "networkd-route.h"
 #include "networkd-routing-policy-rule.h"
 #include "parse-util.h"
-#include "set.h"
 #include "socket-netlink.h"
 #include "string-table.h"
 #include "string-util.h"
index 676bea3d701a745d57ff9fef2a6c27bd633c8ba1..ac545d9b78bff2da691f2aa9b3c6cb7b3da4aade 100644 (file)
@@ -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);