buglwIP - A Lightweight TCP/IP stack - Bugs: bug #38204, DHCP lease time not handled...

 
 

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

bug #38204: DHCP lease time not handled correctly

Submitted by:  Christoffer Lind <christofferlind>
Submitted on:  Wed 30 Jan 2013 04:52:04 PM UTC  
 
Category: DHCPSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned Release: None
lwIP version: 1.4.0

Sat 21 Mar 2015 09:10:42 AM UTC, comment #1:

Fixed, thanks for reporting.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Wed 30 Jan 2013 04:52:04 PM UTC, original submission:

I have found some issues with the handling of the lease time which don't comply with RFC 2131 section "4.4.5 Reacquisition and expiration".

1. If not given, T2 should default to 87.5% of the given lease time. Currently T2 is set to the offered lease (100%).

2. The DHCP requests that shall be sent in state DHCP_REBINDING and DHCP_RENEWING are not sent according to the algorithm explained in section 4.4.5. Instead the same re-send algorithm that is used in DHCP_REQUESTING state is used.

I have attached updated versions of dhcp.c and dhcp.h that solves the explained problems.

Christoffer Lind <christofferlind>

 

Attached Files
file #27351:  dhcp.c added by christofferlind (63KiB - text/plain)
file #27352:  dhcp.h added by christofferlind (8KiB - text/plain)

 

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 christofferlind (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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 21 Mar 2015 09:10:42 AM UTCgoldsimonStatusNone=>Fixed
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed
    Wed 30 Jan 2013 04:52:04 PM UTCchristofferlindAttached File-=>Added dhcp.c, #27351
      Attached File-=>Added dhcp.h, #27352

    Back to the top


    Powered by Savane 3.1-cleanup1