diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-02-28 10:55:51 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-03-11 14:20:31 +0900 |
commit | 09d09207dece533ced25c91024ce7a1c0ed660d8 (patch) | |
tree | 386d5fc738c98f696d928aa399d4ea98fdfbae7c /src/network/networkd-ndisc.c | |
parent | 4c8b81caa518df34d4e69f6660fc4fbdf0b42ce4 (diff) | |
download | systemd-09d09207dece533ced25c91024ce7a1c0ed660d8.tar.gz |
network: re-design request queue
This makes Request object takes hash, compare, free, and process functions.
With this change, the logic in networkd-queue.c can be mostly
independent of the type of the request or the object (e.g. Address) assigned
to the request, and it becomes simpler.
Diffstat (limited to 'src/network/networkd-ndisc.c')
-rw-r--r-- | src/network/networkd-ndisc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd-ndisc.c b/src/network/networkd-ndisc.c index 2a85fb3cfb..8cbc67f542 100644 --- a/src/network/networkd-ndisc.c +++ b/src/network/networkd-ndisc.c @@ -1116,7 +1116,7 @@ int ndisc_start(Link *link) { return 1; } -int ndisc_process_request(Request *req, Link *link, void *userdata) { +static int ndisc_process_request(Request *req, Link *link, void *userdata) { int r; assert(link); @@ -1152,7 +1152,7 @@ int link_request_ndisc(Link *link) { if (link->ndisc) return 0; - r = link_queue_request(link, REQUEST_TYPE_NDISC, NULL, false, NULL, NULL, NULL); + r = link_queue_request(link, REQUEST_TYPE_NDISC, ndisc_process_request, NULL); if (r < 0) return log_link_warning_errno(link, r, "Failed to request configuring of the IPv6 Router Discovery: %m"); |