Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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:

https://i.imgur.com/ZpKkHTj.png

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

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;

val = tvb_get_guint8(tvb, 1); 1);

proto_tree_add_uint(masp_tree, hf_masp_data, tvb, 1, 1, val);

Here is an image of the results:

https://i.imgur.com/ZpKkHTj.png

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

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:

https://i.imgur.com/ZpKkHTj.png

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

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:

https://i.imgur.com/ZpKkHTj.png

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

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:

https://i.imgur.com/ZpKkHTj.png

Expected result: 0x00 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

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:

https://i.imgur.com/ZpKkHTj.png

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

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:

https://i.imgur.com/ZpKkHTj.png

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

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; val = tvb_get_guint8(tvb, 1);

1); proto_tree_add_uint(masp_tree, hf_masp_data, tvb, 1, 1, val);

val);

Here is an image of the results:

https://i.imgur.com/ZpKkHTj.png

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