summaryrefslogtreecommitdiff
path: root/src/network/networkd-route.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-02-26 15:56:39 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-03-11 14:16:41 +0900
commitff51134c93a748524b75b4fd492f9c03cb02f65c (patch)
treeaa4dd86f335acceeecb3de90f3ae9fb2f466892d /src/network/networkd-route.h
parent54ff39f7aecbefeb6f480ea61fbacc4ee554dacc (diff)
downloadsystemd-ff51134c93a748524b75b4fd492f9c03cb02f65c.tar.gz
network: make request_process_address() and friends take Link and corresponding object
This also renames e.g. request_process_address() -> address_process_request(). Also, this drops type checks such as `assert(req->type == REQUEST_TYPE_ADDRESS)`, as in the later commits, the function of processing request, e.g. `address_process_request()`, will be assigned to the Request object when it is created. And the request type will be used to distinguish and to avoid deduplicating requests which do not have any assigned objects, like REQUEST_TYPE_DHCP4_CLIENT. Hence, the type checks in process functions are mostly not necessary and redundant. This is mostly cleanups and preparation for later commits, and should not change any behavior.
Diffstat (limited to 'src/network/networkd-route.h')
-rw-r--r--src/network/networkd-route.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-route.h b/src/network/networkd-route.h
index ee8e36f83d..634ed16176 100644
--- a/src/network/networkd-route.h
+++ b/src/network/networkd-route.h
@@ -95,7 +95,7 @@ int link_request_route(
link_netlink_message_handler_t netlink_handler,
Request **ret);
int link_request_static_routes(Link *link, bool only_ipv4);
-int request_process_route(Request *req);
+int route_process_request(Request *req, Link *link, Route *route);
int manager_rtnl_process_route(sd_netlink *rtnl, sd_netlink_message *message, Manager *m);