How do I get and display packet data information at a specific byte from the first byte?
Hello, I am a beginner in Wireshark and dissector building, right now I'm just trying to figure out how to fetch and display packet data. I use the following lines in my dissect function:
guint val;
val = tvb_get_guint8(tvb, 1);
proto_tree_add_uint(masp_tree, hf_masp_data, tvb, 1, 1, val);
Here is an image of the results:
Expected result: 0x00
Actual result: 0x60
Why does fetching the data start from the 43rd byte instead of the very 1st one? How do I resolve this issue?
Thanks