This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

storing data in queue or stack

0

I'm trying to create a dissector that filters a retransmission packet by comparing DSN.

Retransmission packets have the same data sequence number as the original packet, so I want to store the DSN and compare if there is the same DSN.

Where could I store the values of DSN? How do I create the storage? and is it possible to store them in something like a queue or stack?

asked 21 Jun '17, 01:59

ngn505's gravatar image

ngn505
6779
accept rate: 0%


One Answer:

0

Have a look at request-response tracking, which is the same problem. You can find it in a README file in the sources /doc directory.

answered 21 Jun '17, 02:46

Jaap's gravatar image

Jaap ♦
11.7k16101
accept rate: 14%

Thanks for you help. I've read the README file, but I don't think I have a basic understanding of this.

So here is the question : let's say I make the c file, following the instructions of the READ file, then do I add the c file into wireshark directory? And after I do everything like making the file and writing my dissector, How does it work? Does my dissector reads the data from the memory pool that was made by the c file?

Sorry for such fundamental questions but I really don't get it and know where to ask these..

(22 Jun '17, 01:48) ngn505
1

If you want to learn how to write a dissector then the Wireshark Developers Guide would be a good starting point.

(22 Jun '17, 02:04) Jaap ♦