]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Parse KNOWN keyword.
authorTed Lemon <source@isc.org>
Mon, 12 Apr 1999 22:09:24 +0000 (22:09 +0000)
committerTed Lemon <source@isc.org>
Mon, 12 Apr 1999 22:09:24 +0000 (22:09 +0000)
common/parse.c

index 184934bd1ab27bf0379ead857913db32d769e4ae..3e0af38fdcc4a1e7bab2296c9d3acc60c96d7255 100644 (file)
@@ -22,7 +22,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: parse.c,v 1.20 1999/04/05 15:50:09 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: parse.c,v 1.21 1999/04/12 22:09:24 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -1536,6 +1536,13 @@ int parse_non_binary (expr, cfile, lose, context)
                }
                break;
 
+             case KNOWN:
+               token = next_token (&val, cfile);
+               if (!expression_allocate (expr, "parse_expression: EXISTS"))
+                       log_fatal ("can't allocate expression");
+               (*expr) -> op = expr_known;
+               break;
+
              case SUBSTRING:
                token = next_token (&val, cfile);
                if (!expression_allocate (expr, "parse_expression: SUBSTRING"))