fix bug in mount script
[openwrt.git] / package / busybox / patches / 240-udhcpc_retries.patch
1 diff -ur busybox.old/networking/udhcp/dhcpc.c busybox.dev/networking/udhcp/dhcpc.c
2 --- busybox.old/networking/udhcp/dhcpc.c 2006-11-10 00:17:26.000000000 +0100
3 +++ busybox.dev/networking/udhcp/dhcpc.c 2006-11-10 00:17:10.000000000 +0100
4 @@ -330,7 +330,7 @@
5 /* timeout dropped to zero */
6 switch (state) {
7 case INIT_SELECTING:
8 - if (packet_num < client_config.retries) {
9 + if (!client_config.retries || (packet_num < client_config.retries)) {
10 if (packet_num == 0)
11 xid = random_xid();
12
13 @@ -355,7 +355,7 @@
14 break;
15 case RENEW_REQUESTED:
16 case REQUESTING:
17 - if (packet_num < client_config.retries) {
18 + if (!client_config.retries || (packet_num < client_config.retries)) {
19 /* send request packet */
20 if (state == RENEW_REQUESTED)
21 send_renew(xid, server_addr, requested_ip); /* unicast */
This page took 0.040536 seconds and 5 git commands to generate.