Re: Assert in print.c get_field_data() creating PD ML file

"Gilbert Ramirez" <[email protected]> Thu, 8 Jun 2006 15:20:26 -0500
Newsgroups gmane.network.ethereal.devel
Message-ID <[email protected]>
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) <[email protected]> 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
> [email protected]
> http://www.ethereal.com/mailman/listinfo/ethereal-dev
>
>