[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] dhcp_coarse_tmr & dhcp_fine_tmr
From: |
Michael Anburaj |
Subject: |
Re: [lwip-users] dhcp_coarse_tmr & dhcp_fine_tmr |
Date: |
Sun, 15 Aug 2004 00:28:15 -0700 (PDT) |
Hi Christiaan,
Thanks a lot for sharing this.
> > Hi,
> >
> > I guess these "dhcp_coarse_tmr & dhcp_fine_tmr"
> > function will have to be called periodically for
> DHCP
> > client to work fine.
> >
> > Am I right?
>
> Yes.
>
> >
> > If so, the application has to set timeouts for
> these
> > using sys_timeout() or some other means. Am I
> right?
> >
>
> Never used the sys_ funtions, but I guess so.
Yea, I had to start a separate new thread specially
for calling these two tmr functions with OS_delays in
between calls. And this seems to work well.
>
> > Are these things documented some place?
Still, I am curious to know.. Are these things
mentioned in some LwIP document?
> >
> > Question 3# (This may be a dumb question, excuse
> me):
> > DHCP client needed not be kept active after
> getting a
> > leased IP address from the DHCP server <I guess>.
> So,
> > can these timeouts for dhcp_coarse_tmr &
> dhcp_fine_tmr
> > be cleared or removed after?
> >
>
> Closing the client may cause the server to assume
> the address may be leased to another node.
>
> You must continue your lease using the timers!
Cool. Thanks for let me know this.
Cheers,
-Mike.
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail