buglwIP - A Lightweight TCP/IP stack - Bugs: bug #51571, IP address is used after DHCP...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #51571: IP address is used after DHCP lease is expired

Submitter:  Matthias Hofmann <mhofmann>
Submitted:  Tue 25 Jul 2017 12:17:42 PM UTC
   
 
Category:  DHCP Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  2.0.0

Tue 25 Jul 2017 07:48:44 PM UTC, comment #2: 

Pushed, thanks for reporting!

Simon Goldschmidt <goldsimon>
Group administrator
Tue 25 Jul 2017 12:36:18 PM UTC, comment #1: 

Little correction to the testing procedure: I pinged the eval board after DHCP Discover messages are sent.

The attached patch should fix the bug.

(file #41330)

Matthias Hofmann <mhofmann>
Tue 25 Jul 2017 12:17:42 PM UTC, original submission:  

When testing DHCP of the lwip 2.0.0 release, I was surprised that the IP address is still used after the lease time had expired.

I expected that the IP configuration is reset after the lease time is expired.

For testing purpose I configured the DHCP server with a maximum lease time of 300 seconds.
I connected a eval board running lwip and wait until an IP address is assigned.
Than I stop the DHCP server and wait until the lease time have expired and 2 DHCP Request were sent (1 unicast, 1 broadcast).

After this I ping the eval board with the expired IP address.


After searching in sources it looks like the root cause is that in the DHCP state REBINDING, the IP address is not treated as "DHCP supplied".

Matthias Hofmann <mhofmann>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by mhofmann (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-07-25 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed
    2017-07-25 mhofmann Attached File- Added 0001-Fix-using-DHCP-IP-configuration-after-lease-time.patch, #41330

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code