lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] DHCP: IF not connected on power up


From: Simon Goldschmidt
Subject: Re: [lwip-users] DHCP: IF not connected on power up
Date: Tue, 08 Jun 2010 16:54:09 +0200

"Bernhard \'Gustl\' Bauer" wrote:
> > Instead, you should monitor your PHY and when it detects a link, call
> > dhcp_start (or dhcp_reboot?). This ensures that the time from
> > plugging the cable to getting an IP address is (nearly) constant.
> 
> I will do so. Is there already a structure in LWIP to show a linked PHY 
> or do you plan to add one. I'd like to be compatible.

Call netif_set_link_up() / netif_set_link_down() from your driver, use 
netif_set_link_callback() to let your application get informed of these changes 
and in the callback you registered, call dhcp_renew(), that should be it.

Simon
-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01



reply via email to

[Prev in Thread] Current Thread [Next in Thread]