I guess I misunderstood what you were trying to do. Given:
n
Myproperty
o
X.409 Integer
§
Tag
§
Length
§
Value I thought you just wanted a way to display the “Value” on the “Myproperty” row but that since you already added “Value”
to the tree, can’t you simply filter on the “Value” field, i.e., instead of a filter like
myprop.myproperty==0xFF, use something like
myprop.myproperty.x509integer.value==0xFF? If you really want to be able to apply a filter like
myprop.myproperty==0xFF, then I think you’ll have to delay adding it to the tree until after you’ve dissected the “Value”, and then add it something like so: local myproperty_tree = tree:add(pf_myproperty, buffer(offset, len), value) Note here that since you’ve dissected the value, you must already know the
len, so you ought to be able to use len
and there should be no need to call set_len() later. - Chris From: Wireshark-users [mailto:wireshark-users-bounces@xxxxxxxxxxxxx]
On Behalf Of Pawlowsky, Marc Setting the text changes the display but does not appear to allow for the item to be filtered on. Date: Wed, 19 Sep 2018 18:05:28 +0000 CONFIDENTIALITY NOTICE: This message is the property of International Game Technology PLC and/or its subsidiaries and may contain proprietary, confidential or trade secret information. This message is intended solely for the use of the addressee. If you are not the intended recipient and have received this message in error, please delete this message from your system. Any unauthorized reading, distribution, copying, or other use of this message or its attachments is strictly prohibited. |
- References:
- [Wireshark-users] LUA set value for treeitem
- From: Pawlowsky, Marc
- Re: [Wireshark-users] LUA set value for treeitem
- From: Pawlowsky, Marc
- [Wireshark-users] LUA set value for treeitem
- Prev by Date: Re: [Wireshark-users] LUA set value for treeitem
- Previous by thread: Re: [Wireshark-users] LUA set value for treeitem
- Next by thread: [Wireshark-users] [HITB-Announce] #HITBSecConf2018PEK Call for CTF
- Index(es):