diff options
author | Michael Mann <mmann78@netscape.net> | 2016-12-11 19:16:52 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-12-13 13:08:39 +0000 |
commit | 4e97f74f1156db5c2cb139a404bc6423cebf7236 (patch) | |
tree | bce553ff7dbbe9977fb1adbfc2dc6440be0307c4 /epan/proto.h | |
parent | 97b41a494c214161b358cc99fad843a6f061b283 (diff) | |
download | wireshark-4e97f74f1156db5c2cb139a404bc6423cebf7236.tar.gz |
Add support for adding unit names to hf_ fields.
This was inspired by the https://www.wireshark.org/lists/wireshark-dev/201505/msg00029.html thread.
Used TCP and NTP dissectors as the guinea pig with sample use.
Documentation updates includes some unrelated cleanup just because it was noticed.
Change-Id: I59b26e1ca3b95e3473e4757f1759d7ad82976965
Reviewed-on: https://code.wireshark.org/review/19211
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/proto.h')
-rw-r--r-- | epan/proto.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/proto.h b/epan/proto.h index eff10a9c93..53f8dca61f 100644 --- a/epan/proto.h +++ b/epan/proto.h @@ -546,6 +546,7 @@ typedef enum { #define BASE_EXT_STRING 0x200 #define BASE_VAL64_STRING 0x400 #define BASE_ALLOW_ZERO 0x800 /**< Display <none> instead of <MISSING> for zero sized byte array */ +#define BASE_UNIT_STRING 0x1000 /**< Add unit text to the field value */ /** BASE_ values that cause the field value to be displayed twice */ #define IS_BASE_DUAL(b) ((b)==BASE_DEC_HEX||(b)==BASE_HEX_DEC) |