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:
parent
8295862b9e
commit
7b81f32fa1
|
@ -10,7 +10,7 @@
|
||||||
*
|
*
|
||||||
* See RFCs 2570-2576 for SNMPv3
|
* 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
|
* Ethereal - Network traffic analyzer
|
||||||
* By Gerald Combs <gerald@ethereal.com>
|
* 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 */
|
return buf; /* it's not 4 bytes */
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#ifdef REMOVED
|
||||||
|
/* not all counters are encoded as a full 64bit integer */
|
||||||
case SNMP_COUNTER64:
|
case SNMP_COUNTER64:
|
||||||
/* Length has to be 8 bytes. */
|
/* Length has to be 8 bytes. */
|
||||||
buf = check_var_length(val_len, 8);
|
buf = check_var_length(val_len, 8);
|
||||||
if (buf != NULL)
|
if (buf != NULL)
|
||||||
return buf; /* it's not 8 bytes */
|
return buf; /* it's not 8 bytes */
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue