lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #30038] dhcp_network_changed doesn't reset AUTOIP coop


From: Bill Auerbach
Subject: [lwip-devel] [bug #30038] dhcp_network_changed doesn't reset AUTOIP coop state
Date: Wed, 02 Jun 2010 14:09:31 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)

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

                 Summary: dhcp_network_changed doesn't reset AUTOIP coop
state
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: billauerbach
            Submitted on: Wed 02 Jun 2010 10:09:30 AM EDT
                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:

The AutoIP coop state is not reset in dhcp_network_changed.  It's required to
do so or you cannot change connections from DHCP to AutoIP and back to DHCP
and have it change accordingly.  Without this patch when a link without DHCP
is connected after a link that had DHCP lwIP continues to use the DHCP
address.

Patch follows:

Index: dhcp.c
===================================================================
RCS file: /sources/lwip/lwip/src/core/dhcp.c,v
retrieving revision 1.125
diff -c -r1.125 dhcp.c
*** dhcp.c      16 May 2010 15:57:44 -0000      1.125
--- dhcp.c      2 Jun 2010 13:59:46 -0000
***************
*** 761,766 ****
--- 761,769 ----
      break;
    default:
      dhcp->tries = 0;
+ #if LWIP_DHCP_AUTOIP_COOP
+     dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_OFF;
+ #endif
      dhcp_discover(netif);
      break;
    }





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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