Thanks guys - works like a charm now... Best regards, Tobias
-------- Original-Nachricht -------- > Datum: Sun, 15 Feb 2009 18:12:46 -0500 > Von: "Maynard, Chris" <[email protected]> > An: "Developer support list for Wireshark" <[email protected]> > Betreff: Re: [Wireshark-dev] Problem with proto_tree_add_item... > For FT_BOOLEAN, I think you want to use true_false_string instead of > value_string and TFS() instead of VALS(). e.g., > > Change this: > static const value_string rtp_midi_cs_flag_b[] = > { > { 0,"Short Header: 1 octet" }, > { 1,"Long Header: 2 octets" }, > { 0,NULL }, > }; > > To this: > static const true_false_string rtp_midi_cs_flag_b = { > "Long Header: 2 octets", > "Short Header: 1 octet" > }; > > And this: > &hf_rtp_midi_bflag, > { > "B-Flag", > "rtpmidi.b_flag", > FT_BOOLEAN, > 8, > VALS(rtp_midi_cs_flag_b), > RTP_MIDI_CS_FLAG_B, > "", HFILL > } > > To this: > &hf_rtp_midi_bflag, > { > "B-Flag", > "rtpmidi.b_flag", > FT_BOOLEAN, > 8, > TFS(&rtp_midi_cs_flag_b), > RTP_MIDI_CS_FLAG_B, > "", HFILL > } > > (Refer to README.developer for more details ...) > - Chris > > > > -----Original Message----- > > From: [email protected] [mailto:wireshark-dev- > > [email protected]] On Behalf Of Tobias Erichsen > > Sent: Sunday, February 15, 2009 5:39 PM > > To: [email protected] > > Subject: [Wireshark-dev] Problem with proto_tree_add_item... > > > > Hi everyone, > > > > I seem to have a little problem with calling proto_tree_add_item. On > some > > packets, > > when I click on the entry to expand the tree, Wireshark crashes. If I > > don't insert > > those add_items, everything is fine... > > > > Some sniplets of the code are below. > > > > Has anyone possibly got any insights what I am doing wrong? > > > > Best regards, > > Tobias > > > > > [snip] > CONFIDENTIALITY NOTICE: The contents of this email are confidential > and for the exclusive use of the intended recipient. If you receive this > email in error, please delete it from your system immediately and > notify us either by email, telephone or fax. You should not copy, > forward, or otherwise disclose the content of the email. > > ___________________________________________________________________________ > Sent via: Wireshark-dev mailing list <[email protected]> > Archives: http://www.wireshark.org/lists/wireshark-dev > Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev > > mailto:[email protected]?subject=unsubscribe -- Jetzt 1 Monat kostenlos! GMX FreeDSL - Telefonanschluss + DSL für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <[email protected]> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:[email protected]?subject=unsubscribe
