summaryrefslogtreecommitdiff
path: root/busybox/busybox-1.00-rc1/dhcp-retrytime.patch
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2004-08-03 22:48:04 +0000
committerPhil Blundell <philb@gnu.org>2004-08-03 22:48:04 +0000
commitc20cb42ec8d6bc8919308e039b45b12136685452 (patch)
tree289be5b6aae514ebd502c0f5cfae4bcfeb49fc85 /busybox/busybox-1.00-rc1/dhcp-retrytime.patch
parente323b96de179765902fb716b338187ed936333f1 (diff)
roll busybox back to 1.00-rc1 due to modprobe and other breakage in rc2
BKrev: 41101624yPfQAK2RdolnJpfMvrcJTw
Diffstat (limited to 'busybox/busybox-1.00-rc1/dhcp-retrytime.patch')
-rw-r--r--busybox/busybox-1.00-rc1/dhcp-retrytime.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/busybox/busybox-1.00-rc1/dhcp-retrytime.patch b/busybox/busybox-1.00-rc1/dhcp-retrytime.patch
new file mode 100644
index 0000000000..c4354e6733
--- /dev/null
+++ b/busybox/busybox-1.00-rc1/dhcp-retrytime.patch
@@ -0,0 +1,46 @@
+--- busybox-1.00-pre2/networking/udhcp/dhcpc.c~dhcp-timeout
++++ busybox-1.00-pre2/networking/udhcp/dhcpc.c
+@@ -46,6 +46,7 @@
+ static unsigned long requested_ip; /* = 0 */
+ static unsigned long server_addr;
+ static unsigned long timeout;
++static unsigned long retry_time;
+ static int packet_num; /* = 0 */
+ static int fd = -1;
+
+@@ -175,6 +176,7 @@
+ {"quit", no_argument, 0, 'q'},
+ {"request", required_argument, 0, 'r'},
+ {"script", required_argument, 0, 's'},
++ {"retrytime", required_argument, 0, 't'},
+ {"version", no_argument, 0, 'v'},
+ {0, 0, 0, 0}
+ };
+@@ -182,7 +184,7 @@
+ /* get options */
+ while (1) {
+ int option_index = 0;
+- c = getopt_long(argc, argv, "c:fbH:h:i:np:qr:s:v", arg_options, &option_index);
++ c = getopt_long(argc, argv, "c:fbH:h:i:np:qr:s:t:v", arg_options, &option_index);
+ if (c == -1) break;
+
+ switch (c) {
+@@ -228,6 +230,9 @@
+ case 's':
+ client_config.script = optarg;
+ break;
++ case 't':
++ retry_time = atol(optarg);
++ break;
+ case 'v':
+ bb_error_msg("version %s\n", VERSION);
+ return(0);
+@@ -306,7 +311,7 @@
+ }
+ /* wait to try again */
+ packet_num = 0;
+- timeout = now + 60;
++ timeout = now + retry_time;
+ }
+ break;
+ case RENEW_REQUESTED: