]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkd: raise limits on number of address 8x
authorLennart Poettering <lennart@poettering.net>
Fri, 18 Oct 2024 07:19:23 +0000 (09:19 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 18 Oct 2024 10:13:49 +0000 (19:13 +0900)
Limits should be enforced, but not in a way real setups collide with
them.

There have been multiple reports that current limits are too low, hence
raise them 8x.

Fixes: #24852
src/network/networkd-address.c

index 1e37e6e85a63cdc40c2e07a12c5db2f33e332063..d580840a26ea60696c44a333c48b4c52ee3068d8 100644 (file)
@@ -27,8 +27,8 @@
 #include "strv.h"
 #include "strxcpyx.h"
 
-#define ADDRESSES_PER_LINK_MAX 2048U
-#define STATIC_ADDRESSES_PER_NETWORK_MAX 1024U
+#define ADDRESSES_PER_LINK_MAX 16384U
+#define STATIC_ADDRESSES_PER_NETWORK_MAX 8192U
 
 #define KNOWN_FLAGS                             \
         (IFA_F_SECONDARY |                      \