From: Maxime Bizon Date: Tue, 28 Jun 2005 20:21:12 +0000 (-0700) Subject: [IPV4]: ipconfig.c: fix dhcp timeout behaviour X-Git-Tag: v2.6.13-rc1~2^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a1af5d7bb94af16b980a53330436b9fadc12435;p=pandora-kernel.git [IPV4]: ipconfig.c: fix dhcp timeout behaviour I think there is a small bug in ipconfig.c in case IPCONFIG_DHCP is set and dhcp is used. When a DHCPOFFER is received, ip address is kept until we get DHCPACK. If no ack is received, ic_dynamic() returns negatively, but leaves the offered ip address in ic_myaddr. This makes the main loop in ip_auto_config() break and uses the maybe incomplete configuration. Not sure if it's the best way to do, but the following trivial patch correct this. Signed-off-by: Maxime Bizon Signed-off-by: David S. Miller --- Reading git-diff-tree failed