Skip to content

Commit

Permalink
Silence a spurious ARP defense message from previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
niklata committed Feb 24, 2017
1 parent 34a8cd7 commit 7080850
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/state.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7080850

Please sign in to comment.