aboutsummaryrefslogtreecommitdiffstats
path: root/packet-snmp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-03-15 07:05:10 +0000
committerGuy Harris <guy@alum.mit.edu>2000-03-15 07:05:10 +0000
commit777335fcc31551fd199aef5554df6a8bf5a776e5 (patch)
tree744c58c6d1950d682a4a3ed4056454f8c556235d /packet-snmp.c
parent6fa0fd5fa8fccae84fec5db4094f3a2dc7a82d2b (diff)
downloadwireshark-777335fcc31551fd199aef5554df6a8bf5a776e5.tar.gz
wireshark-777335fcc31551fd199aef5554df6a8bf5a776e5.tar.bz2
wireshark-777335fcc31551fd199aef5554df6a8bf5a776e5.zip
Dietmar Petras' fix to the handling of SNMPv2 TRAP PDUs.
Fix a comment. svn path=/trunk/; revision=1720
Diffstat (limited to 'packet-snmp.c')
-rw-r--r--packet-snmp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/packet-snmp.c b/packet-snmp.c
index 76ef4ad5d1..8bfde6cd71 100644
--- a/packet-snmp.c
+++ b/packet-snmp.c
@@ -2,7 +2,7 @@
* Routines for SNMP (simple network management protocol)
* D.Jorand (c) 1998
*
- * $Id: packet-snmp.c,v 1.24 2000/02/20 03:32:29 guy Exp $
+ * $Id: packet-snmp.c,v 1.25 2000/03/15 07:05:10 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -908,9 +908,11 @@ dissect_snmp_pdu(const u_char *pd, int offset, frame_data *fd,
case SNMP_MSG_GETNEXT:
case SNMP_MSG_RESPONSE:
case SNMP_MSG_SET:
- /* XXX - are they like V1 non-trap PDUs? */
+ /* XXX - we should dissect non-repeaters and max-repetitions
+ as those two INTEGER values in a SNMP_MSG_GETBULK PDU */
case SNMP_MSG_GETBULK:
case SNMP_MSG_INFORM:
+ case SNMP_MSG_TRAP2:
/* request id */
ret = asn1_uint32_decode (&asn1, &request_id, &length);
if (ret != ASN1_ERR_NOERROR) {