aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDirk Weise <code@dirk-weise.de>2017-06-22 10:16:17 +0200
committerMichael Mann <mmann78@netscape.net>2017-06-22 12:25:38 +0000
commit9fe90b93ce9bbb802f45b93632a78f5261b3f717 (patch)
treeb058c983bcabdbd8d09f90eb4b05b3680cbdc0f7
parent44aa08d02511ee0056a6456c66136ae753de989c (diff)
Add notes about predefined strings not available to plugins
The documention refers dissector authors to helpful predifined string structures that plugin authors unfortunately cannot use. Bug: 13828 Change-Id: I62cdfeb200c9b354aed44d40c80a0e8f9e8f910b Reviewed-on: https://code.wireshark.org/review/22339 Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r--doc/README.dissector8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/README.dissector b/doc/README.dissector
index 9f585c2b5c..514fe70f7f 100644
--- a/doc/README.dissector
+++ b/doc/README.dissector
@@ -1023,7 +1023,7 @@ For fields with that unit name, you would declare a "unit_name_string":
This is typically the case when abbreviations are used instead of full words.)
There are several "common" unit name structures already defined in
-epan/unit_strings.h. Dissector authors may choose to add the unit name
+epan/unit_strings.h. Dissector authors may choose to add the unit name
structure there rather than locally in a dissector.
For hf[] array FT_(U)INT*, FT_FlOAT and FT_DOUBLE fields that need a
@@ -1091,6 +1091,12 @@ in tfs.h, included via packet.h.
Custom fields (BASE_CUSTOM) should use CF_FUNC(&custom_format_func) for the
'strings' field.
+-- Note to plugin authors
+Data cannot get exported from DLLs. For this reason plugin authors cannot use
+existing fieldconvert strings (e.g. from existing dissectors or those from
+epan/unit_strings.h). Plugins must define value_strings, unit_name_strings,
+range_strings and true_false_strings locally.
+
bitmask (BITMASK)
-----------------
If the field is a bitfield, then the bitmask is the mask which will