From dc9f7820176b7c7c85f6ac290a2ca2d0941219e1 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Sun, 29 Nov 2015 00:13:59 +0000 Subject: Add BASE_ALLOW_ZERO for byte arrays that are validly zero sized. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit implies that the field should be there and isn't. Allow dissectors to specify when a zero-sized array for a field is perfectly valid. Ping-Bug: 11803 Change-Id: I3fd60e3c6f832c6b4a3a8837ebc52c3e74e795ae Reviewed-on: https://code.wireshark.org/review/12271 Petri-Dish: Michael Mann Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte Reviewed-by: João Valverde Reviewed-by: Michael Mann --- epan/proto.h | 1 + 1 file changed, 1 insertion(+) (limited to 'epan/proto.h') diff --git a/epan/proto.h b/epan/proto.h index c5e840237a..c6ce7ede21 100644 --- a/epan/proto.h +++ b/epan/proto.h @@ -538,6 +538,7 @@ typedef enum { #define BASE_RANGE_STRING 0x100 #define BASE_EXT_STRING 0x200 #define BASE_VAL64_STRING 0x400 +#define BASE_ALLOW_ZERO 0x800 /**< Display instead of for zero sized byte array */ /** BASE_ values that cause the field value to be displayed twice */ #define IS_BASE_DUAL(b) ((b)==BASE_DEC_HEX||(b)==BASE_HEX_DEC) -- cgit v1.2.1