Wireshark mailing list archives
Re: Protocol filter
From: Paul Offord <Paul.Offord () advance7 com>
Date: Sun, 18 Sep 2016 17:57:09 +0000
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 settings.
Thanks and regards…Paul
From: wireshark-dev-bounces () wireshark org [mailto:wireshark-dev-bounces () wireshark org] On Behalf Of Pascal Quantin
Sent: 18 September 2016 18:12
To: Developer support list for Wireshark <wireshark-dev () wireshark org>
Subject: Re: [Wireshark-dev] Protocol filter
Hi Paul,
2016-09-18 19:01 GMT+02:00 Paul Offord <Paul.Offord () advance7 com<mailto:Paul.Offord () advance7 com>>:
Hi,
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 e.g.
transum.art>1
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.
Pascal.
______________________________________________________________________
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 Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Protocol filter Paul Offord (Sep 18)
- Re: Protocol filter Pascal Quantin (Sep 18)
- Re: Protocol filter Paul Offord (Sep 18)
- Re: Protocol filter Pascal Quantin (Sep 18)
