http://bugzilla.novell.com/show_bug.cgi?id=601704
http://bugzilla.novell.com/show_bug.cgi?id=601704#c2
--- Comment #2 from Jan Engelhardt 2010-05-05 17:45:42 UTC ---
I did a Diff between dhcpcd-3.2.3-47.2 and -47.4:
diff -dpru 472/dhcpcd-3.2.3/client.c 474/dhcpcd-3.2.3/client.c
--- 472/dhcpcd-3.2.3/client.c 2010-05-05 19:15:22.014111336 +0200
+++ 474/dhcpcd-3.2.3/client.c 2010-05-05 18:37:04.000000000 +0200
@@ -531,7 +531,10 @@ static int wait_for_packet (struct pollf
if (iface->fd == -1)
timeout = (int) state->timeout;
else {
- timeout = TIMEOUT_MINI;
+ if( ! timeout )
+ timeout = TIMEOUT_MINI;
+ else
+ timeout *= 2;
if (state->timeout < timeout)
timeout = (int) state->timeout;
}
diff -dpru 472/dhcpcd.spec 474/dhcpcd.spec
--- 472/dhcpcd.spec 2009-10-24 05:08:25.000000000 +0200
+++ 474/dhcpcd.spec 2010-05-05 18:37:21.000000000 +0200
@@ -97,6 +115,27 @@ perl -i -pe 's/^(DHCLIENT_ADDITIONAL_OPT
rm -rf $RPM_BUILD_ROOT
%changelog
+...
+* Fri Nov 27 2009 varkoly@suse.de
+- bnc#552916 - dhcp client swamps network with dhcp requests although
+ ip already obtained
+...
Peter, you broke retransmission for when the client does not have an IP address
yet. Your multiplication by 2 is in the wrong place, leading to
timeout=state->timeout being done, bringing the timeout to a ridiculous
117-something seconds.
Attaching patch to fix this.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.