Ethereal-dev: [Ethereal-dev] snmp counter64 value patch: junk value for counter64 was displaye

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

From: "Guihong Xu" <ghxu@xxxxxxxxxx>
Date: Thu, 19 May 2005 14:08:35 -0400
PLEASE ignore my previous email. Wrong files were attached.
------------------------------------------------------

Hi,

 When the object type is counter64, junk value was displayed.

 root cause:
   when type of struct snmpvariable is SNMP_COUNTER64, 
   net-snmp library function sprint_realloc_value expects
   variable->var.counter64 point to struct counter64 date type.

 
 Attatched are patch files.

 please cd to epan and do following to apply the patch:

    cp somewhere/asn1.h-patch .
    cp somewhere/asn1.c-patch .
    
    patch < asn1.h-patch
    patch < asn1.c-patch

 please cd to epan/dissectors and do following to apply the patch:

   cp somewhere/packet-snmp.c-patch .
   patch < packet-snmp.c-patch



Best regards,

-guihong


 

Attachment: asn1.c-patch
Description: Binary data

Attachment: packet-snmp.c-patch
Description: Binary data

Attachment: asn1.h-patch
Description: Binary data