From: Ted Lemon Date: Mon, 12 Apr 1999 22:09:24 +0000 (+0000) Subject: Parse KNOWN keyword. X-Git-Tag: V3-ALPHA-19990412~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7033063307e2cda2104112cc30ef5649a92c53e8;p=thirdparty%2Fdhcp.git Parse KNOWN keyword. --- diff --git a/common/parse.c b/common/parse.c index 184934bd1..3e0af38fd 100644 --- a/common/parse.c +++ b/common/parse.c @@ -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"))