Hello guys, My task is as following: i want to extend a custom dissector with the ability to calculate the difference between timestamps. Some packets contain a TLV containing a timestamp and whenever a timestamp TLV occurs after the first timestamp, the difference to the last timestamp should calculated and displayed. I do not know yet how to store the values I am retrieving from packets so that i can reuse them at a later point of time. Can anyone show me an example, please? Bye, hhhannes asked 27 Nov '13, 00:42 hhhannes |
If I understand you want to save data and use them in another call of your dissector ?
First packet -> save timestamp
Second packet -> get last timestamp
I am right ?
If so use conversation Interface
Thanks. Are there dissectors which contain good examples for the use of the conversation feature?
Yes take a look at epan/dissector/packet-tcp.c
@Afrim: That may be a bit steep learning curve
@hhhannes: Check Request/Response tracking