check in Thomas Anders patch to SNMP to allow ethereal to dissect

properly COUNTER64 objects that are not spanning a full 64 bit on the wire

svn path=/trunk/; revision=11028
This commit is contained in:
Ronnie Sahlberg 2004-05-29 01:00:59 +00:00
parent 8295862b9e
commit 7b81f32fa1
1 changed files with 4 additions and 2 deletions

View File

@ -10,7 +10,7 @@
*
* See RFCs 2570-2576 for SNMPv3
*
* $Id: packet-snmp.c,v 1.126 2004/01/23 10:25:08 guy Exp $
* $Id: packet-snmp.c,v 1.127 2004/05/29 01:00:59 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -677,13 +677,15 @@ format_var(struct variable_list *variable, subid_t *variable_oid,
return buf; /* it's not 4 bytes */
break;
#ifdef REMOVED
/* not all counters are encoded as a full 64bit integer */
case SNMP_COUNTER64:
/* Length has to be 8 bytes. */
buf = check_var_length(val_len, 8);
if (buf != NULL)
return buf; /* it's not 8 bytes */
break;
#endif
default:
break;
}