lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #29072] DHCPDISCOVER doesn't have ciaddr == 0


From: Bill Auerbach
Subject: [lwip-devel] [bug #29072] DHCPDISCOVER doesn't have ciaddr == 0
Date: Thu, 04 Mar 2010 19:10:10 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 (.NET CLR 3.5.30729)

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

                 Summary: DHCPDISCOVER doesn't have ciaddr == 0
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: billauerbach
            Submitted on: Thu 04 Mar 2010 02:10:08 PM EST
                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:

RFC2131 (4.4.1) calls for DHCPDISCOVER to have a ciaddr of 0.

Line 1667 (CVS Head) is:

  if (dhcp->state==DHCP_BOUND || dhcp->state==DHCP_RENEWING ||
dhcp->state==DHCP_REBINDING) {
    ip_addr_copy(dhcp->msg_out->ciaddr, netif->ip_addr);
  }

This should skip setting ciaddr to non-0 because it's in state
DHCP_REQUESTING, but it must become non-0 elsewhere because in WireShark it's
set to the static fallback address I have set until DHCP does comes online.

Also, is there some "give up" timeout for DHCP?  I'm seeing DHCP Discover
packets in WireShark forever since there is no server present.




    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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