Messages in this thread | | | Date | Wed, 27 Feb 2008 13:46:55 +0100 | From | Patrick McHardy <> | Subject | Re: [PATCH] [resend]The kernel gets no IP from some DHCP servers, 2.6.24 |
| |
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@web.de>, 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@bridgeco.net > */
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.
| |