Thanks Pascal,

I did this:

        pi = proto_tree_add_item(tree, proto_transum, tvb, 0, -1, ENC_NA);
        rte_tree = proto_item_add_subtree(pi, ett_transum);

It works a treat.  It also fixed a problem I had where right clicking on the 
tree header and choosing Protocol Preferences failed to show the preference 

Thanks and regards…Paul

[] On Behalf Of Pascal Quantin
Sent: 18 September 2016 18:12
To: Developer support list for Wireshark <>
Subject: Re: [Wireshark-dev] Protocol filter

Hi Paul,

2016-09-18 19:01 GMT+02:00 Paul Offord 

I am trying to get the TRANSUM post-dissector to allow a filter with the 
expression “transum”.  I expect it to just display packets that have a TRANSUM 
RTE Data subtree in them – which is what the LUA version does – just like “tcp” 
or “http” or “tds”.  When I type the word “transum” into the display filter box 
the background shows as green, but when I apply the filter no packets are 
displayed.  Filter on other values in the TRANSUM RTE Data subtree work fine 

I’ve looked through the various README files in the doc directory but I can’t 
find any mention of this.  What do I need to do to get this to work?

You need to add a line

proto_tree_add_item(tree, proto_transum, tvb, 0, -1, ENC_NA);
at the beginning of the main dissection function.

The code is available on Gerrit – change 17750.

Note that there is an issue with this changeset, that is a followup of 
changeset 17757 that you abandoned, and not a full standalone patch adding all 
the transum code.



This message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system.

Any views or opinions expressed are solely those of the author and do not 
necessarily represent those of Advance Seven Ltd. E-mail transmission cannot be 
guaranteed to be secure or error-free as information could be intercepted, 
corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The 
sender therefore does not accept liability for any errors or omissions in the 
contents of this message, which arise as a result of e-mail transmission.

Advance Seven Ltd. Registered in England & Wales numbered 2373877 at Endeavour 
House, Coopers End Lane, Stansted, Essex CM24 1SJ

This email has been scanned by the Symantec Email service.
For more information please visit
Sent via:    Wireshark-dev mailing list <>

Reply via email to