summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/sd-ipv4ll.c
diff options
context:
space:
mode:
authorAJ Bagwell <anthony.bagwell@hivehome.com>2019-12-10 16:27:31 +0000
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-12-11 13:26:31 +0900
commite92b60b20f21111a0c28135c1b5c78fc851a4f15 (patch)
treec5447fe6899b34015f8038b124782e5a21b65efe /src/libsystemd-network/sd-ipv4ll.c
parentbfb68540d5016a107975ada8352ec843fa1c532e (diff)
downloadsystemd-e92b60b20f21111a0c28135c1b5c78fc851a4f15.tar.gz
ipv4ll: do not reset conflict counter on restart
Don't reset the conflict counter when trying a new pseudo random address, so that after trying 10 addresses the londer timeout is used in accordance with the RFC Fixes #14299.
Diffstat (limited to 'src/libsystemd-network/sd-ipv4ll.c')
-rw-r--r--src/libsystemd-network/sd-ipv4ll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-ipv4ll.c b/src/libsystemd-network/sd-ipv4ll.c
index fa9b4f6039..aa1ece41d2 100644
--- a/src/libsystemd-network/sd-ipv4ll.c
+++ b/src/libsystemd-network/sd-ipv4ll.c
@@ -241,7 +241,7 @@ static int ipv4ll_start_internal(sd_ipv4ll *ll, bool reset_generation) {
picked_address = true;
}
- r = sd_ipv4acd_start(ll->acd);
+ r = sd_ipv4acd_start(ll->acd, reset_generation);
if (r < 0) {
/* We couldn't start? If so, let's forget the picked address again, the user might make a change and