소스 검색

[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.
tags/v0.9.4
Michael Brown 17 년 전
부모
커밋
a1d0f6ed2e
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1
    0
      src/net/udp/dhcp.c

+ 1
- 0
src/net/udp/dhcp.c 파일 보기

818
 
818
 
819
 	/* If we have a ProxyDHCPOFFER, transition to PROXYDHCPREQUEST */
819
 	/* If we have a ProxyDHCPOFFER, transition to PROXYDHCPREQUEST */
820
 	if ( dhcp->proxydhcpoffer ) {
820
 	if ( dhcp->proxydhcpoffer ) {
821
+		dhcp->timer.min_timeout = 0;
821
 		dhcp_set_state ( dhcp, DHCP_STATE_PROXYREQUEST );
822
 		dhcp_set_state ( dhcp, DHCP_STATE_PROXYREQUEST );
822
 		return;
823
 		return;
823
 	}
824
 	}

Loading…
취소
저장