lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] DHCP restart


From: Simon Goldschmidt
Subject: Re: [lwip-users] DHCP restart
Date: Wed, 27 Oct 2010 20:12:58 +0200

 "Bill Auerbach" <address@hidden> wrote:

Simon, isn’t this driver/port dependant? Meaning the callbacks won’t occur if the driver isn’t programmed to do so?

Well, that's what I meant when mentioning netif_set_link_up/down. Without the driver calling these, the lwIP-internal link state won't change and thus the callback won't be called, that's rit.

Simon

 

Bill

 

From: address@hidden [mailto:address@hidden On Behalf Of address@hidden
Sent: Wednesday, October 27, 2010 1:36 PM
To: Mailing list for lwIP users
Subject: Re: [lwip-users] DHCP restart

 

Bill Auerbach wrote:

I wait to call dhcp_start until I see that I have a link established.

... and as a reminder to those who don't know:
- netif_set_link_callback() is used to set a callback per netif to get informed when the lwIP-internal link state changes.
- netif_set_link_up()/netif_set_link_down() is used by netif drivers to report the link status to lwIP (e.g. after getting an interrupt from the PHY)

Simon

_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users

reply via email to

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