From 553da374461efb87436dbbed7d319d252d4fe2e6 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Sat, 3 Jan 2015 21:56:16 -0500 Subject: Create BASE_DOT, BASE_DASH, and BASE_SEMICOLON types for the FT_BYTES field type. These "bases" will put a ".", "-", or ":" respectively between hexidecimal bytes in the field in packet view and display filter. FT_BYTES with BASE_NONE will have no separator in the packet view, but continue to have the ':' as a separator in the display filter. Converted the "string" hf_ entries that used tvb_fc_to_str as a string to use proto_tree_add_item with FT_BYTES/BASE_DOT type. Converted applicable tvb_bytes_to_ep_str_punct() calls to use the new BASE values. Change-Id: I2442185bb314d04a3ff2ba57883652ecd738b5f9 Reviewed-on: https://code.wireshark.org/review/6098 Reviewed-by: Michael Mann --- doc/README.dissector | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/README.dissector b/doc/README.dissector index 78a2723134..c50957459c 100644 --- a/doc/README.dissector +++ b/doc/README.dissector @@ -106,7 +106,7 @@ FIELDTYPE FT_NONE, FT_BOOLEAN, FT_UINT8, FT_UINT16, FT_UINT24, FT_RELATIVE_TIME, FT_STRING, FT_STRINGZ, 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, - FT_REL_OID, FT_AX25, FT_VINES, FT_SYSTEM_ID, FT_FCWWN + FT_REL_OID, FT_AX25, FT_VINES, FT_SYSTEM_ID, FT_FC, FT_FCWWN FIELDDISPLAY --For FT_UINT{8,16,24,32,64} and FT_INT{8,16,24,32,64): @@ -131,6 +131,12 @@ FIELDDISPLAY --For FT_UINT{8,16,24,32,64} and FT_INT{8,16,24,32,64): STR_ASCII or STR_UNICODE + --For FT_BYTES: + + BASE_DOT, BASE_DASH, or BASE_SEMICOLON to provide a + separator between bytes. + BASE_NONE has no separator between bytes + --For all other types: BASE_NONE -- cgit v1.2.3