aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.h
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2010-04-27 10:32:34 +0000
committerAnders Broman <anders.broman@ericsson.com>2010-04-27 10:32:34 +0000
commitfab55e4772d878cf191a44363a3db53ec2b76d3b (patch)
treea04a10ab0ad995f93796651efe5d0ed72f3bd1ce /epan/proto.h
parent13cfe2964f14854076479a6d91c2732b277335ec (diff)
From Jakub Zawadzki:
Itroduce value_string_ext for faster value matching in value_strings. svn path=/trunk/; revision=32574
Diffstat (limited to 'epan/proto.h')
-rw-r--r--epan/proto.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/epan/proto.h b/epan/proto.h
index e1c8bd0048..97b934dcba 100644
--- a/epan/proto.h
+++ b/epan/proto.h
@@ -159,10 +159,15 @@ typedef enum {
BASE_CUSTOM /**< call custom routine (in ->strings) to format */
} base_display_e;
+#define IS_INT_TYPE(type) \
+ ((type) == FT_UINT8 || (type) == FT_UINT16 || (type) == FT_UINT24 || (type) == FT_UINT32 || (type) == FT_UINT64 || \
+ (type) == FT_INT8 || (type) == FT_INT16 || (type) == FT_INT24 || (type) == FT_INT32 || (type) == FT_INT64)
+
/* Following constants have to be ORed with a base_display_e when dissector
* want to use specials MACROs (for the moment, only RVALS) for a
* header_field_info */
#define BASE_RANGE_STRING 0x10
+#define BASE_EXT_STRING 0x20
/* BASE_ values that cause the field value to be displayed twice */
#define IS_BASE_DUAL(b) ((b)==BASE_DEC_HEX||(b)==BASE_HEX_DEC)