Re: [PATCH] [resend]The kernel gets no IP from some DHCP servers,2.6.24

From: Patrick McHardy
Date: Wed Feb 27 2008 - 07:47:07 EST


Wappler Marcel wrote:
--- linux-2.6.24.2/net/ipv4/ipconfig.c 2008-02-21 15:27:47.250890963 +0100
+++ linux/net/ipv4/ipconfig.c 2008-02-21 15:36:12.686735925 +0100
@@ -29,6 +29,10 @@
*
* Multiple Nameservers in /proc/net/pnp
* -- Josef Siemes <jsiemes@xxxxxx>, Aug 2002
+ *
+ * Bugfix: Not getting an IP from some DHCP servers: RFC2131 page 36
+ * Table 5 requests DHCPDISCOVER fields ciaddr and siaddr MUST be '0'.
+ * -- marcel.wappler@xxxxxxxxxxxx
*/

Please don't add changelogs to source files, git keeps track of
them.

#include <linux/types.h>
@@ -103,6 +107,7 @@
- '3' from resolv.h */
#define NONE __constant_htonl(INADDR_NONE)
+#define ZERO __constant_htonl(((unsigned long int) 0x00000000))

This should probably use INADDR_ANY.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/