Wireshark-dev: Re: [Wireshark-dev] PCAP
From: Jaap Keuter <[email protected]>
Date: Mon, 09 Jun 2008 21:09:19 +0200
Hi,

You might as well use the pinfo struct for that.

Thanx,
Jaap

Nicholas Marra wrote:
Hello,

I’m adding a feature to a dissector I created that compares the System PCAP timestamp with the Dissected Message Timestamp. The goal is to compare the two timestamps and see if they are off by a certain amount of time. I located the PCAP Timestamp within the dissect_frame function in the packet-frame.c file. This is located in the wireshark/epan/dissectors directory. The Message Timestamp is located in wireshark/plugins/dar. I included the appropriate header files in both the packet-frame.c and my plugin c file. I set a variable in both c files to store the value of the times. However, I have been unable to get the variables to be set at the right time. I need the PCAP Timestamp value to be passed to my plugin c file for use in my comparison. Does anyone have any suggestions on how I may do this?