I'm very newbie to writing Wireshark code for plugin dissectors, I've read the documentation, but I still have some problem to understand the general environnement. 1) What are exactly trees, what do they do, and why should be useful to add tree for dissecting? Do I have to instance at least one tree in my dissector, or could I completely avoid using them? 2)Are subtrees just trees linked to a "father" tree ore something more? When should I use proto_item_add_subtree instead of proto_tree_add_item? 3)Aren't all the information of the packet in the tvbuff? Why I can't just read there to perform the dissection? 4)What is the difference between proto_tree and proto_item 5)How does the statement if(tree) work? What does it mean that I go into this function if I am being asked for details? Referring to that, what kind of code should I put inside this if() statement, and what else outside? Sorry for these basic questions asked 08 Aug '14, 04:04 francesco_bi... |
One Answer:
Are you sure you've read the Developers Guide and all the items in the docs directory of the source code? Most of these questions are answered there. answered 08 Aug '14, 05:11 grahamb ♦ |
I've read the Developers Guide, but not yet the items in the docs directory, sorry. Anyway thanks for the good explanation