rootfs_split fixes
[openwrt.git] / package / busybox / patches / 240-udhcpc_retries.patch
1 Index: busybox-1.4.2/networking/udhcp/dhcpc.c
2 ===================================================================
3 --- busybox-1.4.2.orig/networking/udhcp/dhcpc.c 2007-06-04 13:21:32.319063424 +0200
4 +++ busybox-1.4.2/networking/udhcp/dhcpc.c 2007-06-04 13:21:33.430894400 +0200
5 @@ -291,7 +291,7 @@
6 /* timeout dropped to zero */
7 switch (state) {
8 case INIT_SELECTING:
9 - if (packet_num < client_config.retries) {
10 + if (!client_config.retries || (packet_num < client_config.retries)) {
11 if (packet_num == 0)
12 xid = random_xid();
13
14 @@ -316,7 +316,7 @@
15 break;
16 case RENEW_REQUESTED:
17 case REQUESTING:
18 - if (packet_num < client_config.retries) {
19 + if (!client_config.retries || (packet_num < client_config.retries)) {
20 /* send request packet */
21 if (state == RENEW_REQUESTED)
22 send_renew(xid, server_addr, requested_ip); /* unicast */
This page took 0.037912 seconds and 5 git commands to generate.