From: Wireshark-dev [mailto:wireshark-dev-boun...@wireshark.org] On Behalf Of Roland Knall Sent: Thursday, November 30, 2017 9:11 AM To: Developer support list for Wireshark <wireshark-dev@wireshark.org> Subject: [Wireshark-dev] Lua question for dissectors
Hi Just a short question, can anyone point me into the direction on how to generate a sub-TVB in LUA from a reassembled stream? We can display the data, but I want to have a sub-TVB displayed, and cannot figure out which method to use. Cheers Hi Roland, Have you looked at the fpm.lua script available at https://wiki.wireshark.org/Lua/Examples? After fpm_proto.dissector() does the reassembly, dissectFPM() is called, which simply does the normal tree:add(), for the given tvb:range(), i.e.: -- We start by adding our protocol to the dissection display tree. local tree = root:add(fpm_proto, tvbuf:range(offset, length_val)) Does that help? - Chris 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.
___________________________________________________________________________ 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-requ...@wireshark.org?subject=unsubscribe