From: Ted Lemon Date: Fri, 26 Jan 2001 05:56:29 +0000 (+0000) Subject: Oops, add constant for requesting state X-Git-Tag: V3-BETA-2-PATCH-16~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=543ce4f87da2862ba5594c363333b43da87193e8;p=thirdparty%2Fdhcp.git Oops, add constant for requesting state --- diff --git a/common/dhcp-eval.5 b/common/dhcp-eval.5 index 40e5f14d6..bbdf6a5c2 100644 --- a/common/dhcp-eval.5 +++ b/common/dhcp-eval.5 @@ -360,9 +360,14 @@ heard, the client will bind to its address and move to the BOUND state. .I \(bu Select - DHCP client is in the SELECTING state - it has received at least one DHCPOFFER message, but is waiting to see if it may receive -other DHCPOFFER messages from other servers. The next message to be -transmitted will be a DHCPREQUEST, which will be broadcast. The -client does not have an IP address. +other DHCPOFFER messages from other servers. No messages are sent in +the SELECTING state. +.TP +.I \(bu +Request - DHCP client is in the REQUESTING state - it has received at +least one DHCPOFFER message, and has chosen which one it will +request. The next message to be sent will be a DHCPREQUEST message, +which will be broadcast. .TP .I \(bu Bound - DHCP client is in the BOUND state - it has an IP address. No diff --git a/common/parse.c b/common/parse.c index 13d1bf94c..25d9f9ffc 100644 --- a/common/parse.c +++ b/common/parse.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: parse.c,v 1.98 2001/01/25 08:23:49 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: parse.c,v 1.99 2001/01/26 05:56:29 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -3730,6 +3730,10 @@ int parse_non_binary (expr, cfile, lose, context) known = S_SELECTING; goto ns_const; + case REQUEST: + known = S_REQUESTING; + goto ns_const; + case BOUND: known = S_BOUND; goto ns_const;