ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: Re: [Ethereal-dev] Assert in print.c get_field_data() creating PD ML file

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Gilbert Ramirez" <gram@xxxxxxxxxxxxxxx>
Date: Thu, 8 Jun 2006 15:20:26 -0500
Can you use add_new_data_source? That seems to be the way to do
things, looking at other dissectors. Call
tvb_set_child_real_data_tvbuff() to link the tvbuff ot the others,
then call add_new_data_source() so the data source can be shown in the
hex-dump pane of the GUI.

--gilbert

On 6/7/06, Howlett, James (James) <jameshowlett@xxxxxxxxxx> wrote:

I am currently using tvb_set_child_real_data_tvbuff().

The issue is that get_field_data() in print.c iterates through the list of data sources to get the bytes referred to by a field_info.

I don't believe that removing the g_assert_not_reached() will have any negative side effects. It will simply mean that no bytes are printed if the tvb has not been added via add_new_data_source(). But I am not that familiar with the source code so I could be wrong.

James.

_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev


_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev