wok-next view busybox/stuff/busybox-1.10.0-dhcpc.u @ rev 2374

slitaz-eeepc: add support for EeePC 900 (Thanks crunchybits)
author Christophe Lincoln <pankso@slitaz.org>
date Fri Mar 06 22:26:42 2009 +0100 (2009-03-06)
parents
children
line source
1 --- busybox-1.10.0/networking/udhcp/dhcpc.c
2 +++ busybox-1.10.0/networking/udhcp/dhcpc.c
3 @@ -377,7 +377,11 @@
4 xid = random_xid();
6 /* send discover packet */
7 - send_discover(xid, requested_ip); /* broadcast */
8 + if (send_discover(xid, requested_ip) < 0) { /* broadcast */
9 + bb_info_msg("No network, failing");
10 + retval = 1;
11 + goto ret;
12 + }
14 timeout = discover_timeout;
15 packet_num++;