lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #31303] DHCP: when changing static up netif to dhcp li


From: Simon Goldschmidt
Subject: [lwip-devel] [bug #31303] DHCP: when changing static up netif to dhcp link_callback is ignored
Date: Sun, 21 Nov 2010 11:48:57 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12

Update of bug #31303 (project lwip):

                  Status:                    None => Invalid                
             Assigned to:                    None => goldsimon              

    _______________________________________________________

Follow-up Comment #1:

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.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?31303>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/




reply via email to

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