From: Ted Lemon Date: Sat, 29 Mar 1997 01:23:17 +0000 (+0000) Subject: Add backoff_cutoff and initial_interval parse keywords; fix send_options thinko X-Git-Tag: DHCP-970328~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6097e223121e04d95ec3c176f8cfb2d3bf4c0d11;p=thirdparty%2Fdhcp.git Add backoff_cutoff and initial_interval parse keywords; fix send_options thinko --- diff --git a/client/clparse.c b/client/clparse.c index 5cea8461a..2decf7b79 100644 --- a/client/clparse.c +++ b/client/clparse.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: clparse.c,v 1.7 1997/03/28 23:50:15 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n"; +"$Id: clparse.c,v 1.8 1997/03/29 01:23:17 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -107,9 +107,9 @@ int read_client_conf () [top_level_config.requested_option_count++] = DHO_HOST_NAME; requested_lease_time = 7200; - top_level_config.requested_options [DHO_DHCP_LEASE_TIME].data + top_level_config.send_options [DHO_DHCP_LEASE_TIME].data = (unsigned char *)&requested_lease_time; - top_level_config.requested_options [DHO_DHCP_LEASE_TIME].len + top_level_config.send_options [DHO_DHCP_LEASE_TIME].len = sizeof requested_lease_time; if ((cfile = fopen (path_dhclient_conf, "r")) == NULL) @@ -253,6 +253,14 @@ void parse_client_statement (cfile, ip, config) parse_lease_time (cfile, &config -> reboot_timeout); return; + case BACKOFF_CUTOFF: + parse_lease_time (cfile, &config -> backoff_cutoff); + return; + + case INITIAL_INTERVAL: + parse_lease_time (cfile, &config -> initial_interval); + return; + case SCRIPT: config -> script_name = parse_string (cfile); return;