summaryrefslogtreecommitdiff
path: root/src/core/manager.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-09-10 13:58:28 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-09-14 20:30:09 +0900
commit84ebe6f01381c21b88e37e856956c9c9ee6781d6 (patch)
treefc82c6bb7bd8a3ac2e28636715c85358960f7b04 /src/core/manager.h
parent60da07ecc7bb318d217810778e430399ab9a2ec7 (diff)
downloadsystemd-84ebe6f01381c21b88e37e856956c9c9ee6781d6.tar.gz
core: replace IPAddressAccessItem with struct in_addr_prefix
Previously, if a unit file which contains n IPAddressAllow/Deny= lines, then the computational order of parsing the file was O(n^3), as ip_address_access_reduce(), whose order is O(n^2), is called for each line. By replacing in_addr_prefix related functions, now the computational order is O(n log n). Fixes #20680.
Diffstat (limited to 'src/core/manager.h')
-rw-r--r--src/core/manager.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/core/manager.h b/src/core/manager.h
index 1220c9fb16..4234e187fd 100644
--- a/src/core/manager.h
+++ b/src/core/manager.h
@@ -12,7 +12,6 @@
#include "cgroup.h"
#include "fdset.h"
#include "hashmap.h"
-#include "ip-address-access.h"
#include "list.h"
#include "prioq.h"
#include "ratelimit.h"