lwIP - A Lightweight TCP/IP stack - Bugs: bug #31303, DHCP: when changing static up...
You are not allowed to post comments on this tracker with your current authentication level.
bug #31303: DHCP: when changing static up netif to dhcp link_callback is ignored
Submitter: | Falk Hatzfeld <falk> | ||
Submitted: | Mon 11 Oct 2010 03:08:56 PM UTC | ||
Category: | None | Severity: | 3 - Normal |
Item Group: | Faulty Behaviour | Status: | Invalid |
Privacy: | Public | Assigned to: | goldsimon |
Open/Closed: | Closed | Planned Release: | None |
lwIP version: | CVS Head |
Sun 21 Nov 2010 11:48:57 AM UTC, comment #1: |
Simon Goldschmidt <goldsimon> |
Mon 11 Oct 2010 03:08:56 PM UTC, original submission:
I don't know where to fix best but change below fixed it to me.
|
Falk Hatzfeld <falk> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 3 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2010-11-21 | goldsimon | Open/Closed | Open | Closed | |
2010-11-21 | goldsimon | Status | None | Invalid | |
Assigned to | None | goldsimon |
Powered by Savane 3.13-d3ae.
Corresponding source code
I think you mixed up the up/down-callback with the link-callback: the up/down-callback notifies the application of the IP status (i.e. valid IP address assigned or not), while the link-callback is mainly used internally to the stack and notifies about changes to the hardware link (i.e. cable pulled/plugged).
As such, triggering the link-callback from dhcp_bind() (when an IP address is assigned) is not intended behaviour. The link-callback is only triggered when your netif driver detects a link change and calls netif_set_link_up/down(). This has to be implemented in your driver. If it's not, the link status is always detected as up.