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

Submitted by:  Matthias Hofmann <mhofmann>
Submitted on:  Tue 25 Jul 2017 12:17:42 PM UTC  
 
Category: DHCPSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned 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>
Project AdministratorIn charge of this item.
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>

 

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 25 Jul 2017 07:48:44 PM UTCgoldsimonStatusNone=>Fixed
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed
    Tue 25 Jul 2017 12:36:18 PM UTCmhofmannAttached File-=>Added 0001-Fix-using-DHCP-IP-configuration-after-lease-time.patch, #41330

    Back to the top


    Powered by Savane 3.1-cleanup1