mirror of
https://github.com/xcat2/xNBA.git
synced 2025-01-20 14:33:15 +00:00
[dhcp] Do not restrict minimum retry time for ProxyDHCPREQUEST
The ProxyDHCPREQUEST is a unicast packet, so the first request will almost always be lost due to not having the IP address in the ARP cache. If the minimum retry time is set to one second (as per commit ff2b6a5), then ProxyDHCP will time out and give up before managing to successfully transmit a request. The DHCP timers need to be reworked anyway, so this mild hack is acceptable for now.
This commit is contained in:
parent
ff2b6a512d
commit
a1d0f6ed2e
@ -818,6 +818,7 @@ static void dhcp_rx_dhcpack ( struct dhcp_session *dhcp,
|
||||
|
||||
/* If we have a ProxyDHCPOFFER, transition to PROXYDHCPREQUEST */
|
||||
if ( dhcp->proxydhcpoffer ) {
|
||||
dhcp->timer.min_timeout = 0;
|
||||
dhcp_set_state ( dhcp, DHCP_STATE_PROXYREQUEST );
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user