dhcp_prot.c: some fixes
Andrew Lunn
andrew.lunn@ascom.ch
Wed Jul 30 07:30:00 GMT 2003
On Tue, Jul 29, 2003 at 11:38:18AM +0900, Motoya Kurotsu wrote:
> Hi all;
>
> The attachment fixes the following problems.
>
> 1) When dhcp is reinitialized by calling init_all_network_interfaces()
> (from management thread), or retried due to the failute at the
> previous trial, the lease is left the previous state. It causes
> unexpected problems. For example, if the previous do_dhcp exits
> with the lease as DHCP_LEASE_T1, *pstate changes into
> DHCPSTATE_RENEWING from DHCPSTATE_INIT immediately before
> the switch sentence in the next do_dhcp().
> 2) If the state falls into DHCPSTATE_NOTBOUND, do_dhcp_down_net() is
> not called from dhcp_halt() because ethX_up is false at the time.
Thanks. I have applied this patch.
Andrew
More information about the Ecos-patches
mailing list