From: Ted Lemon Date: Tue, 16 Jan 2001 22:50:05 +0000 (+0000) Subject: Add 'new' token X-Git-Tag: V3-BETA-2-PATCH-12~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ec697e605affb7f96aae0d620777c8d4f8d1d26;p=thirdparty%2Fdhcp.git Add 'new' token --- diff --git a/common/conflex.c b/common/conflex.c index f1251e728..df7a06251 100644 --- a/common/conflex.c +++ b/common/conflex.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: conflex.c,v 1.85 2001/01/11 23:13:24 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: conflex.c,v 1.86 2001/01/16 22:50:02 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -809,6 +809,8 @@ static enum dhcp_token intern (atom, dfv) return TOKEN_NULL; if (!strcasecmp (atom + 1, "ext")) return TOKEN_NEXT; + if (!strcasecmp (atom + 1, "ew")) + return TOKEN_NEW; break; case 'o': if (!strcasecmp (atom + 1, "mapi")) diff --git a/includes/dhctoken.h b/includes/dhctoken.h index ef5d2db2a..7dab55c78 100644 --- a/includes/dhctoken.h +++ b/includes/dhctoken.h @@ -302,7 +302,8 @@ enum dhcp_token { RENEWING = 598, REBINDING = 599, RECONTACT_INTERVAL = 600, - CLIENT_UPDATES = 601 + CLIENT_UPDATES = 601, + TOKEN_NEW }; #define is_identifier(x) ((x) >= FIRST_TOKEN && \