From 21e17f649ae2de39b258b8c4cd58fea184938d7e Mon Sep 17 00:00:00 2001 From: kieranm Date: Fri, 16 Jul 2010 12:14:01 +0000 Subject: [PATCH] Fixed SNMP ASN constant defines to not use ! operator --- CHANGELOG | 3 +++ src/include/lwip/snmp_asn1.h | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index b9f0f98d..d0e15f2a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -229,6 +229,9 @@ HISTORY ++ Bugfixes: + 2010-07-16: Kieran Mansley + * msg_in.c: Fixed SNMP ASN constant defines to not use ! operator + 2010-07-10: Simon Goldschmidt * ip.c: Fixed bug #30402: CHECKSUM_GEN_IP_INLINE does not add IP options diff --git a/src/include/lwip/snmp_asn1.h b/src/include/lwip/snmp_asn1.h index b6996ca9..605fa3f1 100644 --- a/src/include/lwip/snmp_asn1.h +++ b/src/include/lwip/snmp_asn1.h @@ -46,12 +46,12 @@ extern "C" { #endif -#define SNMP_ASN1_UNIV (!0x80 | !0x40) -#define SNMP_ASN1_APPLIC (!0x80 | 0x40) -#define SNMP_ASN1_CONTXT ( 0x80 | !0x40) +#define SNMP_ASN1_UNIV (0) /* (!0x80 | !0x40) */ +#define SNMP_ASN1_APPLIC (0x40) /* (!0x80 | 0x40) */ +#define SNMP_ASN1_CONTXT (0x80) /* ( 0x80 | !0x40) */ -#define SNMP_ASN1_CONSTR (0x20) -#define SNMP_ASN1_PRIMIT (!0x20) +#define SNMP_ASN1_CONSTR (0x20) /* ( 0x20) */ +#define SNMP_ASN1_PRIMIT (0) /* (!0x20) */ /* universal tags */ #define SNMP_ASN1_INTEG 2