Modify lua dissector tree

asked 2025-02-06 08:16:13 +0000

tfx78 gravatar image

updated 2025-02-06 08:21:48 +0000

Hi, I'm looking for a way to modify/extend the dissection tree of another dissector. Up to now, I've used a post dissector but I can only add a new tree at the same level as the other dissector. My wish is to be able either to modify the displayed data or to add a new field at the correct level. For example : Now displayed in Wireshark: (leafs A and B are separated from their parent leaf)

Dissector tree
|_leaf_1
|   |_leaf_1.1
|   |_leaf_1.2
|_leaf 2
|    |_leaf 2.1
|    |_leaf 2.2
Post dissector tree
|_leaf 1.3
|_leaf 2.3

what I would like:

Dissector tree
|_leaf_1
|   |_leaf_1.1
|   |_leaf_1.2
|   |_leaf 1.3 (from my dissector)
|_leaf 2
    |_leaf 2.1
    |_leaf 2.2
    |_leaf 2.3 (from my dissector)

I've tried to use the chained dissector, but as far as I know, I can only do the same thing (2 dissector trees). Is there a way to obtain the desired presentation?

edit retag flag offensive close merge delete