ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] Problems while displaying the digits in the packet

From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Fri, 19 Jan 2007 18:41:18 +0100 (CET)
Hi,

We're in need for FT_BCD and FT_PACKED_BCD types. I've once started on
them but ended up hacking my own proto_tree_add_packed_bcd() functions.
Still these types would be very nice to have.

Thanx,
Jaap

On Fri, 19 Jan 2007, Jeff Morriss wrote:

>
>
> taraniteja.vishwanatha@xxxxxxxxx wrote:
> [...]
> > proto_tree_add_string(tree, hf_xyz_imsi, tvb, (imsi_len/2 + 1),
> > (imsi_len/2 + 1), digit_str);
>
> [...]
>
> > When the above code snippet is executed, we are getting the following error:
> >
> > Warn Dissector bug, protocol MACIC, in packet 1: proto.c:1859: failed
> > assertion "hfinfo->type == FT_STRING || hfinfo->type == FT_STRINGZ"
>
> Well, what FT type is 'hf_xyz_imsi' in the hf[] array (probably in
> 'proto_register_macic()')?  My guess is it's not an FT_STRING or FT_STRINGZ.
>
>