aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/dhcpc.c')
-rw-r--r--networking/udhcp/dhcpc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index c4277e3f1..a4afb0c46 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -196,7 +196,7 @@ int main(int argc, char *argv[])
196 {"hostname", required_argument, 0, 'h'}, 196 {"hostname", required_argument, 0, 'h'},
197 {"fqdn", required_argument, 0, 'F'}, 197 {"fqdn", required_argument, 0, 'F'},
198 {"interface", required_argument, 0, 'i'}, 198 {"interface", required_argument, 0, 'i'},
199 {"now", no_argument, 0, 'n'}, 199 {"now", no_argument, 0, 'n'},
200 {"pidfile", required_argument, 0, 'p'}, 200 {"pidfile", required_argument, 0, 'p'},
201 {"quit", no_argument, 0, 'q'}, 201 {"quit", no_argument, 0, 'q'},
202 {"request", required_argument, 0, 'r'}, 202 {"request", required_argument, 0, 'r'},
@@ -314,7 +314,7 @@ int main(int argc, char *argv[])
314 client_config.vendorclass[OPT_CODE] = DHCP_VENDOR; 314 client_config.vendorclass[OPT_CODE] = DHCP_VENDOR;
315 client_config.vendorclass[OPT_LEN] = sizeof("udhcp "VERSION) - 1; 315 client_config.vendorclass[OPT_LEN] = sizeof("udhcp "VERSION) - 1;
316 client_config.vendorclass[OPT_DATA] = 1; 316 client_config.vendorclass[OPT_DATA] = 1;
317 memcpy(&client_config.vendorclass[OPT_DATA], 317 memcpy(&client_config.vendorclass[OPT_DATA],
318 "udhcp "VERSION, sizeof("udhcp "VERSION) - 1); 318 "udhcp "VERSION, sizeof("udhcp "VERSION) - 1);
319 } 319 }
320 320
@@ -370,7 +370,7 @@ int main(int argc, char *argv[])
370 } else if (client_config.abort_if_no_lease) { 370 } else if (client_config.abort_if_no_lease) {
371 LOG(LOG_INFO, "No lease, failing."); 371 LOG(LOG_INFO, "No lease, failing.");
372 return 1; 372 return 1;
373 } 373 }
374 /* wait to try again */ 374 /* wait to try again */
375 packet_num = 0; 375 packet_num = 0;
376 timeout = now + 60; 376 timeout = now + 60;