From: Ted Lemon Date: Sat, 24 Jun 2000 06:17:55 +0000 (+0000) Subject: Add 'omapi' keyword X-Git-Tag: V3-BETA-2-PATCH-1~127 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ea249af6e4fea731c930d8cb35ed3c279034c59;p=thirdparty%2Fdhcp.git Add 'omapi' keyword --- diff --git a/common/conflex.c b/common/conflex.c index 5d23d9f22..eeb0b0bd3 100644 --- a/common/conflex.c +++ b/common/conflex.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: conflex.c,v 1.76 2000/06/02 21:27:01 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: conflex.c,v 1.77 2000/06/24 06:17:52 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -793,6 +793,8 @@ static enum dhcp_token intern (atom, dfv) return TOKEN_NEXT; break; case 'o': + if (!strcasecmp (atom + 1, "mapi")) + return OMAPI; if (!strcasecmp (atom + 1, "r")) return OR; if (!strcasecmp (atom + 1, "n")) diff --git a/includes/dhctoken.h b/includes/dhctoken.h index 98042d484..5330074fb 100644 --- a/includes/dhctoken.h +++ b/includes/dhctoken.h @@ -278,6 +278,7 @@ enum dhcp_token { TOKEN_RESERVED = 577, TOKEN_BOOTP = 578, TOKEN_NEXT = 579, + OMAPI = 580 }; #define is_identifier(x) ((x) >= FIRST_TOKEN && \