udhcpc is disrespecting --retries, unless -n is passed as well

John Spencer maillist-busybox at barfooze.de
Tue Aug 6 07:44:04 UTC 2013


udhpc is looping forever witout respecting the number of retries given.
only passing -n makes it exit after the max number of retries.

this is pretty counterintuitive. took me about 2 hours to track down 
this bug because all the funky CFLAGS and LDFLAGS used by BB even when 
doing a debug build make gdb behave very odd and the function has a huge 
loop with dozens of gotos and possible exits.
i had to explore the buildlogs and rip out the commands executed to 
strip all those debug killer CFLAGS away.

anyway: here's the proposed patch:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox-udhcpc.patch
Type: text/x-patch
Size: 480 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20130806/946b294f/attachment.bin>


More information about the busybox mailing list