summaryrefslogtreecommitdiff
path: root/src/libsystemd-network
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-05-23 18:07:51 +0200
committerLennart Poettering <lennart@poettering.net>2016-05-26 15:34:42 +0200
commitd63458452dabeb59665c316693df07e90b9a9395 (patch)
treee57ad828472994140308cbbf874f5a9240521a05 /src/libsystemd-network
parentd914f7a5639b72a400472dda622280f1015b6866 (diff)
ipv4acd: in case the state engine is reused, reset n_conflict timer to 0
Diffstat (limited to 'src/libsystemd-network')
-rw-r--r--src/libsystemd-network/sd-ipv4acd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsystemd-network/sd-ipv4acd.c b/src/libsystemd-network/sd-ipv4acd.c
index 12003fb796..99505181a4 100644
--- a/src/libsystemd-network/sd-ipv4acd.c
+++ b/src/libsystemd-network/sd-ipv4acd.c
@@ -507,6 +507,7 @@ int sd_ipv4acd_start(sd_ipv4acd *ll) {
safe_close(ll->fd);
ll->fd = r;
ll->defend_window = 0;
+ ll->n_conflict = 0;
r = sd_event_add_io(ll->event, &ll->receive_message_event_source, ll->fd, EPOLLIN, ipv4acd_on_packet, ll);
if (r < 0)