]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Added binary &|^ operators.
authorDamien Neil <source@isc.org>
Wed, 30 Aug 2000 18:03:00 +0000 (18:03 +0000)
committerDamien Neil <source@isc.org>
Wed, 30 Aug 2000 18:03:00 +0000 (18:03 +0000)
common/print.c

index 070f179b944416e6553f9003a7267b6c7d7c7adb..91ddb4820efc835d4d281d58f372ee681428f901 100644 (file)
@@ -43,7 +43,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: print.c,v 1.42 2000/03/17 03:59:01 mellon Exp $ Copyright (c) 1995, 1996, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: print.c,v 1.43 2000/08/30 18:03:00 neild Exp $ Copyright (c) 1995, 1996, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -456,6 +456,18 @@ static unsigned print_subexpression (expr, buf, len)
              case expr_remainder:
                s = "%";
                goto binop;
+
+             case expr_binary_and:
+               s = "&";
+               goto binop;
+
+             case expr_binary_or:
+               s = "|";
+               goto binop;
+
+             case expr_binary_xor:
+               s = "^";
+               goto binop;
                
              case expr_not:
                if (len > 6) {