]> git.baikalelectronics.ru Git - kernel.git/commit
ipconfig: handle case of delayed DHCP server
authorChris Friesen <cfriesen@nortel.com>
Mon, 18 May 2009 03:39:33 +0000 (20:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 May 2009 03:39:33 +0000 (20:39 -0700)
commit52bcefa7c39222fce60f7c5ae9dda912d3fc3037
tree157003b5c1b88c1eb95b1307db9835ddd610fb02
parent14ca89c834a493f6e9f77725fb69434d68e2ff54
ipconfig: handle case of delayed DHCP server

If a DHCP server is delayed, it's possible for the client to receive the
DHCPOFFER after it has already sent out a new DHCPDISCOVER message from
a second interface.  The client then sends out a DHCPREQUEST from the
second interface, but the server doesn't recognize the device and
rejects the request.

This patch simply tracks the current device being configured and throws
away the OFFER if it is not intended for the current device.  A more
sophisticated approach would be to put the OFFER information into the
struct ic_device rather than storing it globally.

Signed-off-by: Chris Friesen <cfriesen@nortel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipconfig.c