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

Hi there,

I'm implementing a dissector. Whenever, I add a subtree by using proto_item_add_subtree() to my protocol tree, It appears in the GUI interface of wireshark expanded by default. I've noticed this not the case with the others dissectors such as SSL for example ( Its subtrees are collapsed by default). I want my subtrees to look collapsed by default also but I'm not sure how! Any help,hints would be appreciated.... thanks.

asked 02 Dec '14, 21:08

flora's gravatar image

flora
156313338
accept rate: 100%


You are probably using the same ett_ variable for all your subtrees, leading to this behavior. Use a different ett_ variable per subtree type and they will appear collapsed. The opened one will be remembered when you change the packet viewed.

permanent link

answered 02 Dec '14, 22:14

Pascal%20Quantin's gravatar image

Pascal Quantin
5.5k1060
accept rate: 30%

This works for me. I was using the same tree type for all of my subtrees. Thanks!

(03 Dec '14, 08:58) flora
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×1,620
×637
×158
×1

question asked: 02 Dec '14, 21:08

question was seen: 2,205 times

last updated: 03 Dec '14, 08:58

p​o​w​e​r​e​d by O​S​Q​A