From: Damien Neil Date: Wed, 30 Aug 2000 18:03:00 +0000 (+0000) Subject: Added binary &|^ operators. X-Git-Tag: V3-BETA-2-PATCH-1~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a83fe30733a72840657046c27e457982be0b8d00;p=thirdparty%2Fdhcp.git Added binary &|^ operators. --- diff --git a/common/print.c b/common/print.c index 070f179b9..91ddb4820 100644 --- a/common/print.c +++ b/common/print.c @@ -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) {