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

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

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
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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 02 Dec '14, 21:08

question was seen: 2,303 times

last updated: 03 Dec '14, 08:58

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