From 7080850f38c7512dd34105bafa07bca4b11278a6 Mon Sep 17 00:00:00 2001 From: "Nicholas J. Kain" Date: Fri, 24 Feb 2017 06:48:48 -0500 Subject: [PATCH] Silence a spurious ARP defense message from previous commit. --- src/state.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/state.c b/src/state.c index e1175eb..558039e 100644 --- a/src/state.c +++ b/src/state.c @@ -643,8 +643,9 @@ int dhcp_handle(struct client_state_t cs[static 1], long long nowts, } } if (arp_timeout) { - arp_defense_timeout(cs, nowts); - if (!cs->sent_first_announce || !cs->sent_second_announce) + if (cs->sent_first_announce && cs->sent_second_announce) + arp_defense_timeout(cs, nowts); + else arp_announce_timeout(cs, nowts); if (!cs->got_router_arp || !cs->got_server_arp) { int r = arp_gw_query_timeout(cs, nowts);