aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.h
diff options
context:
space:
mode:
authorKevin Bracey <kevin.bracey@arm.com>2016-01-12 13:20:46 +0200
committerMichael Mann <mmann78@netscape.net>2016-01-24 00:03:18 +0000
commit9eda2fa063569c49ce238d6bbee023c91b46d879 (patch)
tree0b1da4fcc19e0e328fa9c87b9839f9a8f3c130cc /epan/proto.h
parent88cd6552ea861a56df9355e681dcaec50e845bd6 (diff)
Set width of hex output according to bitmask
Output from BASE_HEX et al has always been zero-padded to according to the field type - 8 digits for FT_UINT32, etc. When the field has a bitmask, this is definitely not appropriate - the field type is used to indicate the size of the bitfield container, and tells us nothing about the size of this field. Instead, determine the actual size of the field by inspecting the bitmask, and output the corresponding number of hex digits. Change-Id: I10ec4e93e1e40e8b1354d5368cc8945cf671a617 Reviewed-on: https://code.wireshark.org/review/13225 Reviewed-by: João Valverde <j@v6e.pt> Petri-Dish: João Valverde <j@v6e.pt> 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.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/epan/proto.h b/epan/proto.h
index 002bc4295c..b31cf23a8f 100644
--- a/epan/proto.h
+++ b/epan/proto.h
@@ -2311,12 +2311,6 @@ WS_DLL_PUBLIC void tree_expanded_set(int tree_type, gboolean value);
#define g_ptr_array_len(a) ((a)?(a)->len:0)
#endif
-/** Get number of bits of a header_field.
- @param hfinfo header_field
- @return the bitwidth */
-extern int
-hfinfo_bitwidth(const header_field_info *hfinfo);
-
WS_DLL_PUBLIC int
hfinfo_bitshift(const header_field_info *hfinfo);