#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"
#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"
#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"
#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"
/* 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;
uint32_t weight;
} MultipathRoute;
-struct Route {
+typedef struct Route {
Network *network;
NetworkConfigSection *section;
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);