mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-01 14:55:30 +00:00
add array, boolean, code, integer, ip-address,signed, string, text, unsigned.
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
"$Id: conflex.c,v 1.40 1999/03/16 05:50:32 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
|
"$Id: conflex.c,v 1.41 1999/03/25 21:56:28 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -362,6 +362,8 @@ static int intern (atom, dfv)
|
|||||||
return ADD;
|
return ADD;
|
||||||
if (!strcasecmp (atom + 1, "ll"))
|
if (!strcasecmp (atom + 1, "ll"))
|
||||||
return ALL;
|
return ALL;
|
||||||
|
if (!strcasecmp (atom + 1, "rray"))
|
||||||
|
return ARRAY;
|
||||||
break;
|
break;
|
||||||
case 'b':
|
case 'b':
|
||||||
if (!strcasecmp (atom + 1, "ackoff-cutoff"))
|
if (!strcasecmp (atom + 1, "ackoff-cutoff"))
|
||||||
@@ -376,8 +378,12 @@ static int intern (atom, dfv)
|
|||||||
return BREAK;
|
return BREAK;
|
||||||
if (!strcasecmp (atom + 1, "illing"))
|
if (!strcasecmp (atom + 1, "illing"))
|
||||||
return BILLING;
|
return BILLING;
|
||||||
|
if (!strcasecmp (atom + 1, "oolean"))
|
||||||
|
return BOOLEAN;
|
||||||
break;
|
break;
|
||||||
case 'c':
|
case 'c':
|
||||||
|
if (!strcasecmp (atom + 1, "ode"))
|
||||||
|
return CODE;
|
||||||
if (!strcasecmp (atom + 1, "heck"))
|
if (!strcasecmp (atom + 1, "heck"))
|
||||||
return CHECK;
|
return CHECK;
|
||||||
if (!strcasecmp (atom + 1, "lass"))
|
if (!strcasecmp (atom + 1, "lass"))
|
||||||
@@ -467,6 +473,10 @@ static int intern (atom, dfv)
|
|||||||
return HOSTNAME;
|
return HOSTNAME;
|
||||||
break;
|
break;
|
||||||
case 'i':
|
case 'i':
|
||||||
|
if (!strcasecmp (atom + 1, "nteger"))
|
||||||
|
return INTEGER;
|
||||||
|
if (!strcasecmp (atom + 1, "p-address"))
|
||||||
|
return IP_ADDRESS;
|
||||||
if (!strcasecmp (atom + 1, "nitial-interval"))
|
if (!strcasecmp (atom + 1, "nitial-interval"))
|
||||||
return INITIAL_INTERVAL;
|
return INITIAL_INTERVAL;
|
||||||
if (!strcasecmp (atom + 1, "nterface"))
|
if (!strcasecmp (atom + 1, "nterface"))
|
||||||
@@ -587,6 +597,10 @@ static int intern (atom, dfv)
|
|||||||
return REJECT;
|
return REJECT;
|
||||||
break;
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
|
if (!strcasecmp (atom + 1, "igned"))
|
||||||
|
return SIGNED;
|
||||||
|
if (!strcasecmp (atom + 1, "tring"))
|
||||||
|
return STRING;
|
||||||
if (!strcasecmp (atom + 1, "uffix"))
|
if (!strcasecmp (atom + 1, "uffix"))
|
||||||
return SUFFIX;
|
return SUFFIX;
|
||||||
if (!strcasecmp (atom + 1, "earch"))
|
if (!strcasecmp (atom + 1, "earch"))
|
||||||
@@ -630,8 +644,12 @@ static int intern (atom, dfv)
|
|||||||
return TIMEOUT;
|
return TIMEOUT;
|
||||||
if (!strcasecmp (atom + 1, "oken-ring"))
|
if (!strcasecmp (atom + 1, "oken-ring"))
|
||||||
return TOKEN_RING;
|
return TOKEN_RING;
|
||||||
|
if (!strcasecmp (atom + 1, "ext"))
|
||||||
|
return TEXT;
|
||||||
break;
|
break;
|
||||||
case 'u':
|
case 'u':
|
||||||
|
if (!strcasecmp (atom + 1, "nsigned"))
|
||||||
|
return UNSIGNED;
|
||||||
if (!strcasecmp (atom + 1, "id"))
|
if (!strcasecmp (atom + 1, "id"))
|
||||||
return UID;
|
return UID;
|
||||||
if (!strncasecmp (atom + 1, "se", 2)) {
|
if (!strncasecmp (atom + 1, "se", 2)) {
|
||||||
|
Reference in New Issue
Block a user