]> git.baikalelectronics.ru Git - kernel.git/commit
[IPCONFIG]: The kernel gets no IP from some DHCP servers
authorStephen Hemminger <shemminger@linux-foundation.org>
Wed, 5 Mar 2008 01:03:49 +0000 (17:03 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Mar 2008 01:03:49 +0000 (17:03 -0800)
commita1c59076116b98b2acd19fd420a42ae09a0f3193
tree778abead15781a9b05b2b945d12a0042c8e6e593
parentc6c0843b48fe6c14c1de3d2c930b93cf746187ce
[IPCONFIG]: The kernel gets no IP from some DHCP servers

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>
net/ipv4/ipconfig.c