]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Add EXISTS token.
authorTed Lemon <source@isc.org>
Sat, 17 Oct 1998 13:34:31 +0000 (13:34 +0000)
committerTed Lemon <source@isc.org>
Sat, 17 Oct 1998 13:34:31 +0000 (13:34 +0000)
common/conflex.c

index daf22a6723d2dfcb89eabbfd8693c1ea82f581e7..dca909f3d4f3cb3dd64484067178d20c0f801ef3 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: conflex.c,v 1.33 1998/06/25 02:54:29 mellon Exp $ Copyright (c) 1995, 1996, 1997 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: conflex.c,v 1.34 1998/10/17 13:34:31 mellon Exp $ Copyright (c) 1995, 1996, 1997 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -414,8 +414,12 @@ static int intern (atom, dfv)
                }
                break;
              case 'e':
-               if (!strcasecmp (atom + 1, "xtract-int"))
-                       return EXTRACT_INT;
+               if (isascii (atom [1]) && tolower (atom [1]) == 'x') {
+                       if (!strcasecmp (atom + 2, "tract-int"))
+                               return EXTRACT_INT;
+                       if (!strcasecmp (atom + 2, "ists"))
+                               return EXISTS;
+               }
                if (!strcasecmp (atom + 1, "thernet"))
                        return ETHERNET;
                if (!strcasecmp (atom + 1, "nds"))