This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

How to add source ,destination and protocol info into the tree

0
1

I would like to know the functions which help us in adding the information of source destination and protocol into pane2 ...as clicking on them in pane 3 is making the wireshark to quit I encountered the following error (lt-wireshark:9103): Gtk-CRITICAL **: gtk_tree_store_get_path: assertion `iter->user_data != NULL' failed

(lt-wireshark:9103): Gtk-CRITICAL **: IA__gtk_tree_view_expand_row: assertion `path != NULL' failed

(lt-wireshark:9103): Gtk-CRITICAL **: gtk_tree_store_get_value: assertion `VALID_ITER (iter, tree_store)' failed

(lt-wireshark:9103): GLib-GObject-WARNING **: gtype.c:4181: type id `0' is invalid

(lt-wireshark:9103): GLib-GObject-WARNING **: can't peek value table for type `<invalid>' which is not currently referenced Segmentation fault (core dumped)

This question is marked "community wiki".

asked 23 Sep '11, 01:16

flashkicker's gravatar image

flashkicker
109131919
accept rate: 41%


2 Answers:

0

removing PROTO_ITEM_SET_HIDDEN in packet-eth.c which was used before resolved the issue

answered 23 Sep '11, 02:54

flashkicker's gravatar image

flashkicker
109131919
accept rate: 41%

0

First make sure you have a clean build of a released source before adding your own changes.

Adding items to the protocol tree is do by proto_tree_add_item() calls. All this can be found in doc/README.developer in the source tree.

answered 23 Sep '11, 02:46

Jaap's gravatar image

Jaap ♦
11.7k16101
accept rate: 14%

Ohk thanks...actually i have hidden the Ethernet tree so that i have only the tree presented by my dissector

(23 Sep '11, 02:51) flashkicker