From 553da374461efb87436dbbed7d319d252d4fe2e6 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Sat, 3 Jan 2015 21:56:16 -0500 Subject: Create BASE_DOT, BASE_DASH, and BASE_SEMICOLON types for the FT_BYTES field type. These "bases" will put a ".", "-", or ":" respectively between hexidecimal bytes in the field in packet view and display filter. FT_BYTES with BASE_NONE will have no separator in the packet view, but continue to have the ':' as a separator in the display filter. Converted the "string" hf_ entries that used tvb_fc_to_str as a string to use proto_tree_add_item with FT_BYTES/BASE_DOT type. Converted applicable tvb_bytes_to_ep_str_punct() calls to use the new BASE values. Change-Id: I2442185bb314d04a3ff2ba57883652ecd738b5f9 Reviewed-on: https://code.wireshark.org/review/6098 Reviewed-by: Michael Mann --- rawshark.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rawshark.c') diff --git a/rawshark.c b/rawshark.c index 5bbdaa04d9..29f4347787 100644 --- a/rawshark.c +++ b/rawshark.c @@ -1290,14 +1290,14 @@ static gboolean print_field_value(field_info *finfo, int cmd_line_index) * this field has an associated value, * e.g: ip.hdr_len */ - fs_len = fvalue_string_repr_len(&finfo->value, FTREPR_DFILTER); + fs_len = fvalue_string_repr_len(&finfo->value, FTREPR_DFILTER, finfo->hfinfo->display); while (fs_buf_len < fs_len) { fs_buf_len *= 2; fs_buf = (char *)g_realloc(fs_buf, fs_buf_len + 1); fs_ptr = fs_buf; } fvalue_to_string_repr(&finfo->value, - FTREPR_DFILTER, + FTREPR_DFILTER, finfo->hfinfo->display, fs_buf); /* String types are quoted. Remove them. */ -- cgit v1.2.3