Re: [Wireshark-dev] Creating a TVB

2018-02-28 Thread Paul Offord
shark Subject: Re: [Wireshark-dev] Creating a TVB On Wed, Feb 28, 2018 at 1:49 AM, Paul Offord wrote: > Hi, > > I’m writing a dissector for a new block type. I register a block read > function for my new block type, and when Wireshark detects one of > these blocks, my block read functio

Re: [Wireshark-dev] Creating a TVB

2018-02-28 Thread Paul Offord
Subject: Re: [Wireshark-dev] Creating a TVB 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

Re: [Wireshark-dev] Creating a TVB

2018-02-28 Thread Richard Sharpe
On Wed, Feb 28, 2018 at 1:49 AM, Paul Offord wrote: > Hi, > > I’m writing a dissector for a new block type. I register a block read > function for my new block type, and when Wireshark detects one of these > blocks, my block read function is called with the following parameters: > > gboolean tdb_

Re: [Wireshark-dev] Creating a TVB

2018-02-28 Thread 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 c

[Wireshark-dev] Creating a TVB

2018-02-28 Thread Paul Offord
Hi, I'm writing a dissector for a new block type. I register a block read function for my new block type, and when Wireshark detects one of these blocks, my block read function is called with the following parameters: gboolean tdb_read_block(FILE_T fh, guint32 block_data_len, gboolean c, wtap