]> git.karo-electronics.de Git - karo-tx-linux.git/commit
IPCONFIG: The kernel gets no IP from some DHCP servers
authorStephen Hemminger <shemminger@linux-foundation.org>
Wed, 5 Mar 2008 22:44:01 +0000 (14:44 -0800)
committerChris Wright <chrisw@sous-sol.org>
Mon, 24 Mar 2008 18:47:07 +0000 (11:47 -0700)
commit5eb4efe242d2fbd36551f6016707ee280bb30f31
treefc537570cd6049a87e903b15d31124c4069c11a4
parent44e77f1afc44a41375c4dc16d26459a3bbfddf61
IPCONFIG: The kernel gets no IP from some DHCP servers

Upstream commit: dea75bdfa57f75a7a7ec2961ec28db506c18e5db

From: Stephen Hemminger <shemminger@linux-foundation.org>

Based upon a patch by Marcel Wappler:

   This patch fixes a DHCP issue of the kernel: some DHCP servers
   (i.e.  in the Linksys WRT54Gv5) are very strict about the contents
   of the DHCPDISCOVER packet they receive from clients.

   Table 5 in RFC2131 page 36 requests the fields 'ciaddr' and
   'siaddr' MUST be set to '0'.  These DHCP servers ignore Linux
   kernel's DHCP discovery packets with these two fields set to
   '255.255.255.255' (in contrast to popular DHCP clients, such as
   'dhclient' or 'udhcpc').  This leads to a not booting system.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
net/ipv4/ipconfig.c