diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2004-05-29 01:00:59 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2004-05-29 01:00:59 +0000 |
commit | 7b81f32fa128921001c76a5d501504c0309eade7 (patch) | |
tree | 615a2aefe89c1cb7d4516b1bec025de5a5722374 /packet-snmp.c | |
parent | 8295862b9e63d1a392226753d61b954f9acaad3c (diff) |
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
Diffstat (limited to 'packet-snmp.c')
-rw-r--r-- | packet-snmp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packet-snmp.c b/packet-snmp.c index 7a47934e3e..b91c42efbb 100644 --- a/packet-snmp.c +++ b/packet-snmp.c @@ -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; } |