wok diff busybox/stuff/busybox-1.11.0-dhcpc.u @ rev 1299

Up busybox (1.12.0) with built in module-init-tools
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 21 20:11:27 2008 +0000 (2008-08-21)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/busybox/stuff/busybox-1.11.0-dhcpc.u	Thu Aug 21 20:11:27 2008 +0000
     1.3 @@ -0,0 +1,15 @@
     1.4 +--- busybox-1.11.0/networking/udhcp/dhcpc.c
     1.5 ++++ busybox-1.11.0/networking/udhcp/dhcpc.c
     1.6 +@@ -356,7 +356,11 @@
     1.7 + 					if (packet_num == 0)
     1.8 + 						xid = random_xid();
     1.9 + 
    1.10 +-					send_discover(xid, requested_ip); /* broadcast */
    1.11 ++					if (send_discover(xid, requested_ip) < 0) { /* broadcast */
    1.12 ++						bb_info_msg("No network, failing");
    1.13 ++						retval = 1;
    1.14 ++						goto ret;
    1.15 ++					}
    1.16 + 
    1.17 + 					timeout = discover_timeout;
    1.18 + 					packet_num++;