Skip to content

Commit 2451cd2

Browse files
bengalyuwata
authored andcommitted
networkd: reduce the IPv4 DAD timeout to 200ms
The original timeout of 7 seconds is very long for today's networks. Reduce it to 200ms. Note that this change also affects IPv4 link-local addressing.
1 parent c2691d8 commit 2451cd2

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

NEWS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,13 @@ CHANGES WITH 258 in spe:
109109
* The meson option 'integration-tests' has been deprecated, and will be
110110
removed in a future release.
111111

112+
systemd-networkd and networkctl:
113+
114+
* systemd-networkd now supports configuring the timeout for IPv4
115+
Duplicate Address Detection via a new setting
116+
IPv4DuplicateAddressDetectionTimeoutSec=. The default timeout value
117+
has been changed from 7 seconds to 200 milliseconds.
118+
112119
— <place>, <date>
113120

114121
CHANGES WITH 257:

man/systemd.network.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ DuplicateAddressDetection=none</programlisting></para>
996996
<listitem>
997997
<para>Configures the maximum timeout for IPv4 Duplicate Address Detection (RFC 5227). Must be a
998998
value between 1 millisecond and 60 seconds. If set, Duplicate Address Detection takes a randomized
999-
time between 57% (4/7) and 100% of the given value. If unset, defaults to 7 seconds.</para>
999+
time between 57% (4/7) and 100% of the given value. If unset, defaults to 200 milliseconds.</para>
10001000

10011001
<xi:include href="version-info.xml" xpointer="v258"/>
10021002
</listitem>

src/libsystemd-network/sd-ipv4acd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
#define MAX_CONFLICTS 10U
4444

4545
/* Default timeout from the RFC */
46-
#define DEFAULT_ACD_TIMEOUT_USEC (7 * USEC_PER_SEC)
46+
#define DEFAULT_ACD_TIMEOUT_USEC (200 * USEC_PER_MSEC)
4747

4848
typedef enum IPv4ACDState {
4949
IPV4ACD_STATE_INIT,

0 commit comments

Comments
 (0)