summaryrefslogtreecommitdiff
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:57 +0000
commit472043e8c4f44f13d893bca5c874c67a359aa94d (patch)
treee7255cbaa15a0b38fd4caf57d77e07950f743a37
parented558b5b68b6be1ac8c893b745435cf6246583d5 (diff)
downloadwireshark-472043e8c4f44f13d893bca5c874c67a359aa94d.tar.gz
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> (cherry picked from commit 9fe90b93ce9bbb802f45b93632a78f5261b3f717) Reviewed-on: https://code.wireshark.org/review/22342
-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