Perform timeout-based ARP retransmission for AS_GW_CHECK and AS_GW_QUERY.

This commit is contained in:
Nicholas J. Kain
2011-07-05 11:07:42 -04:00
parent a9c807c1df
commit f1fcd4dc16
3 changed files with 49 additions and 26 deletions

View File

@@ -85,6 +85,10 @@ static void requesting_timeout(struct client_state_t *cs)
// total time, and it is time to renew the lease so that it is not lost.
static void bound_timeout(struct client_state_t *cs)
{
arp_retransmit(cs);
if (curms() < cs->leaseStartTime + cs->renewTime * 1000)
return;
cs->dhcpState = DS_RENEWING;
set_listen_cooked(cs);
log_line("Entering renew state.");