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: Falk Hatzfeld
Subject: [lwip-devel] [bug #31303] DHCP: when changing static up netif to dhcp link_callback is ignored
Date: Mon, 11 Oct 2010 15:08:57 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 ( .NET CLR 3.5.30729)

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

                 Summary: DHCP: when changing static up netif to dhcp
link_callback is ignored
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: falk
            Submitted on: Mo 11 Okt 2010 15:08:56 GMT
                Category: None
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: CVS Head

    _______________________________________________________

Details:

I don't know where to fix best but change below fixed it to me.

static void
dhcp_bind(struct netif *netif)
{
[...]
  /* bring the interface up */
  if ( !(netif->flags & NETIF_FLAG_UP ))
    netif_set_up(netif);
  else
    if (netif->link_callback)
        (netif->link_callback)(netif);
  /* netif is now bound to DHCP leased address */
  dhcp_set_state(dhcp, DHCP_BOUND);
}

PS: actually this was on version 1.3.2 which is not selectable at the box





    _______________________________________________________

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]