From a78917cb6bdd684e01a1a293e68d64ebe57d52ff Mon Sep 17 00:00:00 2001 From: alagoutte Date: Sun, 8 May 2011 10:23:53 +0000 Subject: Add FT_EUI64 Field Type * Remove proto_tree_add_eui64 function from 802.15.4 Dissector * Replace print_eui64/print_eui64 by eui64_to_str/get_eui64_name * Update Documentation (README.dev) * Add new function in libwireshark.def * Support of encoding for tvb_eui64_to_str * Use FT_EUI64 for ICMPv6, CAPWAP, Zbee ... dissector git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37015 f5534014-38df-0310-8fa8-9805f1628bb7 --- doc/README.developer | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/README.developer b/doc/README.developer index 41f7db9bb5..df4a3c2d57 100644 --- a/doc/README.developer +++ b/doc/README.developer @@ -1122,7 +1122,7 @@ FIELDABBREV The abbreviated name for the header field. (NO SPACES) FIELDTYPE FT_NONE, FT_BOOLEAN, FT_UINT8, FT_UINT16, FT_UINT24, FT_UINT32, FT_UINT64, FT_INT8, FT_INT16, FT_INT24, FT_INT32, FT_INT64, FT_FLOAT, FT_DOUBLE, FT_ABSOLUTE_TIME, - FT_RELATIVE_TIME, FT_STRING, FT_STRINGZ, FT_EBCDIC, + FT_RELATIVE_TIME, FT_STRING, FT_STRINGZ, FT_EBCDIC, FT_EUI64 FT_UINT_STRING, FT_ETHER, FT_BYTES, FT_UINT_BYTES, FT_IPv4, FT_IPv6, FT_IPXNET, FT_FRAMENUM, FT_PROTOCOL, FT_GUID, FT_OID FIELDDISPLAY For FT_UINT{8,16,24,32,64} and FT_INT{8,16,24,32,64): @@ -1785,6 +1785,7 @@ The type of value this field holds. The current field types are: address. FT_GUID A Globally Unique Identifier FT_OID An ASN.1 Object Identifier + FT_EUI64 A EUI-64 Address Some of these field types are still not handled in the display filter routines, but the most common ones are. The FT_UINT* variables all @@ -2294,6 +2295,17 @@ protocol or field labels to the proto_tree: proto_tree_add_oid_format(tree, id, tvb, start, length, value_ptr, format, ...); + proto_item * + proto_tree_add_eui64(tree, id, tvb, start, length, value); + + proto_item * + proto_tree_add_eui64_format(tree, id, tvb, start, length, value, + format, ...); + + proto_item * + proto_tree_add_eui64_format_value(tree, id, tvb, start, length, + value, format, ...); + proto_item * proto_tree_add_oid_format_value(tree, id, tvb, start, length, value_ptr, format, ...); @@ -2424,6 +2436,7 @@ proto_tree_add_int() proto_tree_add_int64() proto_tree_add_guid() proto_tree_add_oid() +proto_tree_add_eui64() ------------------------ These routines are used to add items to the protocol tree if either: @@ -2499,6 +2512,9 @@ e_guid_t structure. For proto_tree_add_oid(), the 'value_ptr' argument is a pointer to an ASN.1 Object Identifier. +For proto_tree_add_eui64(), the 'value' argument is a 64-bit integer +value + proto_tree_add_bytes_format() proto_tree_add_time_format() proto_tree_add_ipxnet_format() @@ -2515,6 +2531,7 @@ proto_tree_add_int_format() proto_tree_add_int64_format() proto_tree_add_guid_format() proto_tree_add_oid_format() +proto_tree_add_eui64_format() ---------------------------- These routines are used to add items to the protocol tree when the dissector routine wants complete control over how the field and value @@ -2540,6 +2557,7 @@ proto_tree_add_int_format_value() proto_tree_add_int64_format_value() proto_tree_add_guid_format_value() proto_tree_add_oid_format_value() +proto_tree_add_eui64_format_value() ------------------------------------ These routines are used to add items to the protocol tree when the -- cgit v1.2.3