From: guy Date: Tue, 23 Mar 2004 06:59:59 +0000 (+0000) Subject: Enterprise-specific traps have a generic trap number of 6, not 7; thanks X-Git-Tag: tcpdump-3.8.2~24 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/6f2281716de6a23d70b0ed23f13e5182fdf05d59 Enterprise-specific traps have a generic trap number of 6, not 7; thanks to kin1@sourceforge.net to finding this. --- diff --git a/print-snmp.c b/print-snmp.c index 252914f4..e6079f82 100644 --- a/print-snmp.c +++ b/print-snmp.c @@ -58,7 +58,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-snmp.c,v 1.56.2.2 2003-11-16 08:51:46 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-snmp.c,v 1.56.2.3 2004-03-23 06:59:59 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -210,7 +210,7 @@ const char *GenericTrap[] = { "authenticationFailure", "egpNeighborLoss", "enterpriseSpecific" -#define GT_ENTERPRISE 7 +#define GT_ENTERPRISE 6 }; #define DECODE_GenericTrap(t) \ ( t >= 0 && (size_t)t < sizeof(GenericTrap)/sizeof(GenericTrap[0]) \