Hi Roland, No, I don’t have a packet_info_structure at this point. I’ll take a look at your suggestion. Thanks and regards…Paul From: Wireshark-dev [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx]
On Behalf Of Roland Knall Hi Paul Seems you have to create your own tvb chain here, as the data most likely is not presented yet in the packet_info structure, am I correct? In this case, the corresponding methods would be in epan/tvbuff-int.h, but those are not supposed to be used "by the public", as they are subject to change. I would go a different route though (admittedly a little bit of a hack). I would create a new tvb with tvb_memdup on the first byte of your protocol tvb, and then add the block data via tvb_new_real_data. In that case you have the luxury
of the wmem system, as well as a good cleanup of the tvb. cheers Roland On Wed, Feb 28, 2018 at 10:49 AM, Paul Offord <Paul.Offord@xxxxxxxxxxxx> wrote:
______________________________________________________________________ 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 ______________________________________________________________________ |
- References:
- [Wireshark-dev] Creating a TVB
- From: Paul Offord
- Re: [Wireshark-dev] Creating a TVB
- From: Roland Knall
- [Wireshark-dev] Creating a TVB
- Prev by Date: Re: [Wireshark-dev] Creating a TVB
- Next by Date: Re: [Wireshark-dev] Creating a TVB
- Previous by thread: Re: [Wireshark-dev] Creating a TVB
- Next by thread: Re: [Wireshark-dev] Creating a TVB
- Index(es):