diff options
author | Anders Broman <anders.broman@ericsson.com> | 2013-06-12 15:08:08 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2013-06-12 15:08:08 +0000 |
commit | 82e220f2bd75ff655ea46dd2fda9277a7104111a (patch) | |
tree | 2c03f968ea58311372ae92bc90d60a728cf80c84 /epan/oids.c | |
parent | 6de25d389797dd7860e46e7ab78bd5a8990115a9 (diff) | |
download | wireshark-82e220f2bd75ff655ea46dd2fda9277a7104111a.tar.gz wireshark-82e220f2bd75ff655ea46dd2fda9277a7104111a.tar.bz2 wireshark-82e220f2bd75ff655ea46dd2fda9277a7104111a.zip |
Pretify dissection of date and Time.
svn path=/trunk/; revision=49905
Diffstat (limited to 'epan/oids.c')
-rw-r--r-- | epan/oids.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/oids.c b/epan/oids.c index a65fe6ad6b..c93370e884 100644 --- a/epan/oids.c +++ b/epan/oids.c @@ -81,6 +81,7 @@ static const oid_value_type_t float_type = { FT_FLOAT, BASE_DEC, BER_CLAS static const oid_value_type_t double_type = { FT_DOUBLE, BASE_DEC, BER_CLASS_UNI, BER_UNI_TAG_OCTETSTRING, 8, 8, OID_KEY_TYPE_WRONG, 0}; static const oid_value_type_t ether_type = { FT_ETHER, BASE_NONE, BER_CLASS_UNI, BER_UNI_TAG_OCTETSTRING, 6, 6, OID_KEY_TYPE_ETHER, 6}; static const oid_value_type_t string_type = { FT_STRING, BASE_NONE, BER_CLASS_UNI, BER_UNI_TAG_OCTETSTRING, 0, -1, OID_KEY_TYPE_STRING, 0}; +static const oid_value_type_t date_and_time_type = { FT_STRING, BASE_NONE, BER_CLASS_UNI, BER_UNI_TAG_OCTETSTRING, 8, 11, OID_KEY_TYPE_DATE_AND_TIME, 0}; static const oid_value_type_t unknown_type = { FT_BYTES, BASE_NONE, BER_CLASS_ANY, BER_TAG_ANY, 0, -1, OID_KEY_TYPE_WRONG, 0}; static oid_info_t oid_root = { 0, NULL, OID_KIND_UNKNOWN, NULL, &unknown_type, -2, NULL, NULL, NULL}; @@ -304,7 +305,7 @@ static const oid_value_type_t* get_typedata(SmiType* smiType) { {"TimeStamp",SMI_BASETYPE_UNKNOWN,&timeticks_type}, {"DisplayString",SMI_BASETYPE_UNKNOWN,&string_type}, {"SnmpAdminString",SMI_BASETYPE_UNKNOWN,&string_type}, - {"DateAndTime",SMI_BASETYPE_UNKNOWN,&bytes_type}, + {"DateAndTime",SMI_BASETYPE_UNKNOWN,&date_and_time_type}, {"Counter",SMI_BASETYPE_UNKNOWN,&counter32_type}, {"Counter32",SMI_BASETYPE_UNKNOWN,&counter32_type}, {"Unsigned32",SMI_BASETYPE_UNKNOWN,&unsigned32_type}, |