summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/print-snmp.c
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2007-10-30 12:32:32 +0000
committerreyk <reyk@openbsd.org>2007-10-30 12:32:32 +0000
commit5146bb2befaed25381947bbc6cee63b5c63e432d (patch)
tree8f7d57e1ea858d1dc920f82978efbd17e61e1914 /usr.sbin/tcpdump/print-snmp.c
parentInitial port of Sepherosa Ziehau's DragonFlyBSD drivers (diff)
downloadwireguard-openbsd-5146bb2befaed25381947bbc6cee63b5c63e432d.tar.xz
wireguard-openbsd-5146bb2befaed25381947bbc6cee63b5c63e432d.zip
fix printing of enterprise-specific SNMP traps.
ok claudio@ mglocker@
Diffstat (limited to 'usr.sbin/tcpdump/print-snmp.c')
-rw-r--r--usr.sbin/tcpdump/print-snmp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/print-snmp.c b/usr.sbin/tcpdump/print-snmp.c
index 252b013e1f1..190cea2724b 100644
--- a/usr.sbin/tcpdump/print-snmp.c
+++ b/usr.sbin/tcpdump/print-snmp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-snmp.c,v 1.13 2007/10/07 16:41:05 deraadt Exp $ */
+/* $OpenBSD: print-snmp.c,v 1.14 2007/10/30 12:32:32 reyk Exp $ */
/*
* Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996, 1997
@@ -57,7 +57,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Id: print-snmp.c,v 1.13 2007/10/07 16:41:05 deraadt Exp $ (LBL)";
+ "@(#) $Id: print-snmp.c,v 1.14 2007/10/30 12:32:32 reyk Exp $ (LBL)";
#endif
#include <sys/param.h>
@@ -162,7 +162,7 @@ char *GenericTrap[] = {
"authenticationFailure",
"egpNeighborLoss",
"enterpriseSpecific"
-#define GT_ENTERPRISE 7
+#define GT_ENTERPRISE 6
};
#define DECODE_GenericTrap(t) \
( t >= 0 && t <= sizeof(GenericTrap)/sizeof(GenericTrap[0]) \