]> 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)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 13 Nov 2024 19:48:10 +0000 (19:48 +0000)
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
(cherry picked from commit af7674f4ad30e83efc84f04c45f01e6eff137702)

src/network/networkd-address.c

index b4ac0bc41b6e3e576ba44de824488a6917432e4d..bc748fc5d7282670d35d81465a17e58179f9f690 100644 (file)
@@ -25,8 +25,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 |                      \