|
From: | Christoffer Lind |
Subject: | [lwip-devel] [bug #38204] DHCP lease time not handled correctly |
Date: | Wed, 30 Jan 2013 16:52:05 +0000 |
User-agent: | Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.56 Safari/537.17 |
URL: <http://savannah.nongnu.org/bugs/?38204> Summary: DHCP lease time not handled correctly Project: lwIP - A Lightweight TCP/IP stack Submitted by: christofferlind Submitted on: ons 30 jan 2013 16.52.04 Category: DHCP Severity: 3 - Normal Item Group: Faulty Behaviour Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Planned Release: lwIP version: 1.4.0 _______________________________________________________ Details: 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. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: ons 30 jan 2013 16.52.04 Name: dhcp.c Size: 63 kB By: christofferlind <http://savannah.nongnu.org/bugs/download.php?file_id=27351> ------------------------------------------------------- Date: ons 30 jan 2013 16.52.04 Name: dhcp.h Size: 8 kB By: christofferlind <http://savannah.nongnu.org/bugs/download.php?file_id=27352> _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?38204> _______________________________________________ Meddelandet skickades via/av Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |