diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2006-08-23 08:05:28 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2006-08-23 08:05:28 +0000 |
commit | a3eedad0d17dafcb1eec26259f39bb161bf35a5f (patch) | |
tree | 92c5243829abb912d6515271d5d3686cb702f3cf | |
parent | 70a01d80bfc508f4d9b56a56ac0cb7700a93e3af (diff) | |
download | wireshark-a3eedad0d17dafcb1eec26259f39bb161bf35a5f.tar.gz wireshark-a3eedad0d17dafcb1eec26259f39bb161bf35a5f.tar.bz2 wireshark-a3eedad0d17dafcb1eec26259f39bb161bf35a5f.zip |
Counter64 should be a FT_UINT64 and not a FT_UINT32
fixes bug 1047
svn path=/trunk/; revision=19002
-rw-r--r-- | asn1/snmp/snmp.cnf | 1 | ||||
-rw-r--r-- | epan/dissectors/packet-snmp.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/asn1/snmp/snmp.cnf b/asn1/snmp/snmp.cnf index 0f465be36a..7803ec938e 100644 --- a/asn1/snmp/snmp.cnf +++ b/asn1/snmp/snmp.cnf @@ -250,6 +250,7 @@ gint pdu_type; #.TYPE_ATTR +Counter64 TYPE = FT_UINT64 DISPLAY = BASE_DEC STRINGS = NULL IpAddress TYPE = FT_IPv4 DISPLAY = BASE_NONE STRINGS = NULL Message/community TYPE = FT_STRING DISPLAY = BASE_HEX STRINGS = NULL HeaderData/msgSecurityModel TYPE = FT_UINT32 DISPLAY = BASE_DEC STRINGS = VALS(sec_models) diff --git a/epan/dissectors/packet-snmp.c b/epan/dissectors/packet-snmp.c index 6ee5b4757f..c366178a88 100644 --- a/epan/dissectors/packet-snmp.c +++ b/epan/dissectors/packet-snmp.c @@ -1,6 +1,6 @@ /* Do not modify this file. */ /* It is created automatically by the ASN.1 to Wireshark dissector compiler */ -/* .\packet-snmp.c */ +/* ./packet-snmp.c */ /* ../../tools/asn2wrs.py -b -e -p snmp -c snmp.cnf -s packet-snmp-template snmp.asn */ /* Input file: packet-snmp-template.c */ @@ -3109,7 +3109,7 @@ void proto_register_snmp(void) { "snmp.Opaque", HFILL }}, { &hf_snmp_big_counter_value, { "big-counter-value", "snmp.big_counter_value", - FT_UINT32, BASE_DEC, NULL, 0, + FT_UINT64, BASE_DEC, NULL, 0, "snmp.Counter64", HFILL }}, { &hf_snmp_unsigned_integer_value, { "unsigned-integer-value", "snmp.unsigned_integer_value", |