summaryrefslogtreecommitdiff
path: root/epan/proto.h
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2016-12-30 12:26:34 -0500
committerMichael Mann <mmann78@netscape.net>2016-12-30 20:03:03 +0000
commit13964595ad09e5d1115f6c5cb604cded27f9f55d (patch)
tree6f1f34c286f9805f7b8ba0539a6a0f627200c6d3 /epan/proto.h
parent2d8615948e06e70eef915085258660c23a5bd771 (diff)
downloadwireshark-13964595ad09e5d1115f6c5cb604cded27f9f55d.tar.gz
Add BASE_NO_DISPLAY_VALUE to allow field value to not be shown.
There are times when byte arrays don't want to show their value in the packet tree or there is a field that is the "header" of a subtree where showing the field value distracts from the tree display. For these cases, BASE_NO_DISPLAY_VALUE can be used to not display the value. Change-Id: I8c9f1f57cd2e663dbee07e2289e7f5e1f22d1e32 Reviewed-on: https://code.wireshark.org/review/19479 Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/proto.h')
-rw-r--r--epan/proto.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/epan/proto.h b/epan/proto.h
index 30f6111109..ed4b6971e6 100644
--- a/epan/proto.h
+++ b/epan/proto.h
@@ -547,11 +547,13 @@ typedef enum {
/* Following constants have to be ORed with a field_display_e when dissector
* want to use specials value-string MACROs for a header_field_info */
-#define BASE_RANGE_STRING 0x100
-#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 */
+#define BASE_RANGE_STRING 0x0100
+#define BASE_EXT_STRING 0x0200
+#define BASE_VAL64_STRING 0x0400
+#define BASE_ALLOW_ZERO 0x0800 /**< Display <none> instead of <MISSING> for zero sized byte array */
+#define BASE_UNIT_STRING 0x1000 /**< Add unit text to the field value */
+#define BASE_NO_DISPLAY_VALUE 0x2000 /**< Just display the field name with no value. Intended for
+ byte arrays or header fields above a subtree */
/** BASE_ values that cause the field value to be displayed twice */
#define IS_BASE_DUAL(b) ((b)==BASE_DEC_HEX||(b)==BASE_HEX_DEC)