Mercurial > ecos
diff packages/net/common/current/src/dhcp_prot.c @ 1144:c9c183d9b60a
* src/dhcp_prot.c (do_dhcp): (re)Initialize the lease when
dhcp is (re)initialized or retried.
Return true when the state falls into DHCPSTATE_NOTBOUND so that it
knows the interface it still up and can later bring it down when
cleaning up.
| author | asl |
|---|---|
| date | Wed, 30 Jul 2003 07:30:06 +0000 |
| parents | 21aab473590c |
| children | 49e5a36e706d |
line wrap: on
line diff
--- a/packages/net/common/current/src/dhcp_prot.c +++ b/packages/net/common/current/src/dhcp_prot.c @@ -592,6 +592,7 @@ do_dhcp(const char *intf, struct bootp * return false; *pstate = DHCPSTATE_INIT; + lease->which = lease->next = 0; } s = socket(AF_INET, SOCK_DGRAM, 0); @@ -1189,7 +1190,7 @@ do_dhcp(const char *intf, struct bootp * // No lease active no_lease( lease ); // Leave interface up so app can tidy. - return false; + return true; case DHCPSTATE_FAILED: // All done with socket
