Ethereal-dev: [ethereal-dev] bug in ethereal-0.8.4, file packet-snmp.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Dietmar Petras <dietmar.petras@xxxxxxx>
Date: Thu, 9 Mar 2000 16:58:48 +0100
Dear ethereal developers,

I found a bug in version 0.8.4, file packet-snmp.c:

simply add one case item and ethereal is able to decode SMMP TRAP V2.

Enclosed the patch...

Regards,

	Dietmar

69 petras@einstein ../~/ethereal-0.8.4 > diff -Naur packet-snmp.c.org packet-snmp.c
--- packet-snmp.c.org	Sun Feb 20 04:32:29 2000
+++ packet-snmp.c	Thu Mar  9 16:55:02 2000
@@ -911,6 +911,7 @@
 	/* XXX - are they like V1 non-trap PDUs? */
 	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) {

-- 
---------------------------------------------------------------------------
Dr. Dietmar Petras     Senior Expert
ELSA AG                Engineering Consumer Communications
Sonnenweg 11           Phone: +49-(0)241-606-4649
52070 Aachen           Fax:   +49-(0)241-606-4699
Germany                EMail: DPetras@xxxxxxx
---------------------------------------------------------------------------