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

Submitter:  Christoffer Lind <christofferlind>
Submitted:  Wed 30 Jan 2013 04:52:04 PM UTC
   
 
Category:  DHCP Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned 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>
Group administrator
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>

 

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

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
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by christofferlind (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-03-21 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed
    2013-01-30 christofferlind Attached File- Added dhcp.c, #27351
        Attached File- Added dhcp.h, #27352

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code