lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #19927] DHCP NACK problem


From: Jonathan Larmour
Subject: [lwip-devel] [bug #19927] DHCP NACK problem
Date: Wed, 29 Aug 2007 10:41:57 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060513 Fedora/1.0.8-1.1.fc3.1.legacy Firefox/1.0.8

Follow-up Comment #8, bug #19927 (project lwip):

The problem seems valid, but I'm not sure the fix is.

>From RFC2131 ( http://www.faqs.org/rfcs/rfc2131.html ) section 3.2.3: " If
the client receives a DHCPNAK message, it cannot reuse its remembered network
address."

That's not just for the DHCPDISCOVER (as per the original bug report) but
also for a dhcp_release. We should simply stop using the address, not do a
release. So I'm not sure, but I think dhcp_handle_nak should include:
  netif_set_down(netif);
  /* remove IP address from interface */
  netif_set_ipaddr(netif, IP_ADDR_ANY);
  netif_set_gw(netif, IP_ADDR_ANY);
  netif_set_netmask(netif, IP_ADDR_ANY);

Is there any reason the state machine is then only advanced in
dhcp_timeout(). Couldn't we call dhcp_discover directly?

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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