I have written a dissector and am trying to use proto_tree_add_bits_item to select all the bits that are used in a 7-bit ASCII message of arbitrary length. I convert this 7-bit ASCII to 8-bit and then print out a string, but I would like wireshark to select
the bits that this string was derived from when the "Packet Bytes" window is in "Bits View" instead of the standard "Hex view". I have found that it will highlight the individual bits up to 7*3=21, and then it starts highlighting whole bytes. What's up? Is
there another way to do this?
ti = proto_ tree_ add_ bits_ item(cftext_sub_tree3, hf_cftext_textmess, tvb, 1918, 7*num_char, FALSE); proto_item_set_text(ti, "Text Message: %s" , ascii_message); //I am not interested in printing the bits here, that's why I am using proto_item_set_text
instead of proto_item_append_text.
Any ideas/answers are greatly appreciated!
-Austin