]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Support ignore in boolean expression evaluations.
authorTed Lemon <source@isc.org>
Thu, 21 Oct 1999 03:09:13 +0000 (03:09 +0000)
committerTed Lemon <source@isc.org>
Thu, 21 Oct 1999 03:09:13 +0000 (03:09 +0000)
server/class.c

index 1799711c03a45ba376a53dda321246a0a5b623e8..6e231402aa571eff04a06bc30b9d5d09a10da13a 100644 (file)
@@ -22,7 +22,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: class.c,v 1.14 1999/10/07 06:36:30 mellon Exp $ Copyright (c) 1998 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: class.c,v 1.15 1999/10/21 03:09:13 mellon Exp $ Copyright (c) 1998 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -78,6 +78,7 @@ int check_collection (packet, lease, collection)
        struct data_string data;
        int matched = 0;
        int status;
+       int ignorep;
 
        for (class = collection -> classes; class; class = class -> nic) {
 #if defined (DEBUG_CLASS_MATCHING)
@@ -155,7 +156,7 @@ int check_collection (packet, lease, collection)
                }
 
                status = (evaluate_boolean_expression_result
-                         (packet, lease,
+                         (&ignorep, packet, lease,
                           packet -> options, (struct option_state *)0,
                           class -> expr));
                if (status) {