mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-30 12:32:37 +00:00
Fixed false triggers of request_timeout.
This commit is contained in:
parent
b96c15890c
commit
9a68f74857
@ -62,6 +62,9 @@ HISTORY
|
|||||||
optional LWIP_PLATFORM_HTONS(), LWIP_PLATFORM_HTONL() macros.
|
optional LWIP_PLATFORM_HTONS(), LWIP_PLATFORM_HTONL() macros.
|
||||||
|
|
||||||
++ Bug fixes:
|
++ Bug fixes:
|
||||||
|
|
||||||
|
2006-11-30 Christiaan Simons
|
||||||
|
* dhcp.c: Fixed false triggers of request_timeout.
|
||||||
|
|
||||||
2006-11-28 Christiaan Simons
|
2006-11-28 Christiaan Simons
|
||||||
* netif.c: In netif_add() fixed missing clear of ip_addr, netmask, gw and flags.
|
* netif.c: In netif_add() fixed missing clear of ip_addr, netmask, gw and flags.
|
||||||
|
@ -310,8 +310,12 @@ void dhcp_fine_tmr()
|
|||||||
while (netif != NULL) {
|
while (netif != NULL) {
|
||||||
/* only act on DHCP configured interfaces */
|
/* only act on DHCP configured interfaces */
|
||||||
if (netif->dhcp != NULL) {
|
if (netif->dhcp != NULL) {
|
||||||
/* timer is active (non zero), and is about to trigger now */
|
/* timer is active (non zero), and is about to trigger now */
|
||||||
if (netif->dhcp->request_timeout-- == 1) {
|
if (netif->dhcp->request_timeout > 1) {
|
||||||
|
netif->dhcp->request_timeout--;
|
||||||
|
}
|
||||||
|
else if (netif->dhcp->request_timeout == 1) {
|
||||||
|
netif->dhcp->request_timeout--;
|
||||||
/* { netif->dhcp->request_timeout == 0 } */
|
/* { netif->dhcp->request_timeout == 0 } */
|
||||||
LWIP_DEBUGF(DHCP_DEBUG | DBG_TRACE | DBG_STATE, ("dhcp_fine_tmr(): request timeout\n"));
|
LWIP_DEBUGF(DHCP_DEBUG | DBG_TRACE | DBG_STATE, ("dhcp_fine_tmr(): request timeout\n"));
|
||||||
/* this clients' request timeout triggered */
|
/* this clients' request timeout triggered */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user