summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-route.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-01-09 03:45:37 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-01-13 02:10:32 +0100
commit4db8ccbb59f6825bb8eb8eed07600589fe8691c4 (patch)
tree393178b2e23a75f7b6d1f9708d5ebb36af8e103a /src/network/networkd-route.h
parentnetwork/route: split out route_section_verify_nexthops() (diff)
downloadsystemd-4db8ccbb59f6825bb8eb8eed07600589fe8691c4.tar.xz
systemd-4db8ccbb59f6825bb8eb8eed07600589fe8691c4.zip
wireguard: verify routes configured in .netdev file
Then, scope and friends are correctly adjusted, and the behavior should be matched when the same route is configured in .network file.
Diffstat (limited to 'src/network/networkd-route.h')
-rw-r--r--src/network/networkd-route.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network/networkd-route.h b/src/network/networkd-route.h
index 140980ca05..5c041953ab 100644
--- a/src/network/networkd-route.h
+++ b/src/network/networkd-route.h
@@ -17,6 +17,8 @@ typedef struct Manager Manager;
typedef struct Network Network;
typedef struct Request Request;
typedef struct Route Route;
+typedef struct Wireguard Wireguard;
+
typedef int (*route_netlink_handler_t)(
sd_netlink *rtnl,
sd_netlink_message *m,
@@ -28,6 +30,7 @@ struct Route {
Link *link;
Manager *manager;
Network *network;
+ Wireguard *wireguard;
ConfigSection *section;
NetworkConfigSource source;
NetworkConfigState state;
@@ -108,6 +111,7 @@ int manager_rtnl_process_route(sd_netlink *rtnl, sd_netlink_message *message, Ma
int network_add_ipv4ll_route(Network *network);
int network_add_default_route_on_device(Network *network);
void network_drop_invalid_routes(Network *network);
+int route_section_verify(Route *route);
DEFINE_NETWORK_CONFIG_STATE_FUNCTIONS(Route, route);
void link_mark_routes(Link *link, NetworkConfigSource source);