This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: dhcp_prot.c: some fixes


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]