[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #41787] DHCP Discovery is invalid when an IP is set to
From: |
Nick van IJzendoorn |
Subject: |
[lwip-devel] [bug #41787] DHCP Discovery is invalid when an IP is set to thet netif. |
Date: |
Thu, 06 Mar 2014 08:40:22 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36 |
URL:
<http://savannah.nongnu.org/bugs/?41787>
Summary: DHCP Discovery is invalid when an IP is set to thet
netif.
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: dipswitch_
Submitted on: Thu 06 Mar 2014 08:40:21 AM GMT
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release:
lwIP version: 1.4.0
_______________________________________________________
Details:
The DHCP client will send an invalid DHCP Discovery packet (according to
RFC2131 the ciaddr MUST be zero in the DISCOVERY phase) when the IP of the
netif is already set. For instance when you are switching from static IP to
dynamic IP.
I know you could clear the IP, subnet and gateway yourself before starting the
DHCP client. But I personally think it would be cleaner / better if LwIP
clears the IP, subnet and gateway before turning on the DHCP client.
One solution could be to patch the DHCP client like the patch provided.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?41787>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #41787] DHCP Discovery is invalid when an IP is set to thet netif.,
Nick van IJzendoorn <=