diff options
author | AJ Bagwell <anthony.bagwell@hivehome.com> | 2019-12-10 16:27:31 +0000 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-12-11 13:26:31 +0900 |
commit | e92b60b20f21111a0c28135c1b5c78fc851a4f15 (patch) | |
tree | c5447fe6899b34015f8038b124782e5a21b65efe /src/systemd/sd-ipv4acd.h | |
parent | bfb68540d5016a107975ada8352ec843fa1c532e (diff) | |
download | systemd-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/systemd/sd-ipv4acd.h')
-rw-r--r-- | src/systemd/sd-ipv4acd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/systemd/sd-ipv4acd.h b/src/systemd/sd-ipv4acd.h index 039ed3c7f2..ebf723fc22 100644 --- a/src/systemd/sd-ipv4acd.h +++ b/src/systemd/sd-ipv4acd.h @@ -20,6 +20,7 @@ #include <net/ethernet.h> #include <netinet/in.h> +#include <stdbool.h> #include "sd-event.h" @@ -44,7 +45,7 @@ int sd_ipv4acd_set_mac(sd_ipv4acd *acd, const struct ether_addr *addr); int sd_ipv4acd_set_ifindex(sd_ipv4acd *acd, int interface_index); int sd_ipv4acd_set_address(sd_ipv4acd *acd, const struct in_addr *address); int sd_ipv4acd_is_running(sd_ipv4acd *acd); -int sd_ipv4acd_start(sd_ipv4acd *acd); +int sd_ipv4acd_start(sd_ipv4acd *acd, bool reset_conflicts); int sd_ipv4acd_stop(sd_ipv4acd *acd); sd_ipv4acd *sd_ipv4acd_ref(sd_ipv4acd *acd); sd_ipv4acd *sd_ipv4acd_unref(sd_ipv4acd *acd); |