Wireshark-dev: Re: [Wireshark-dev] Transmission Latency Calculation

Date Prev · Date Next · Thread Prev · Thread Next
From: Christopher Maynard <Christopher.Maynard@xxxxxxxxx>
Date: Mon, 1 Oct 2012 01:10:55 +0000 (UTC)
Herb Falk <herb@...> <Herb@...> writes:

> I am creating a dissector that needs to be able to calculate the transmission
latency of a packet.
>  
> The protocol being dissected has the timestamp of the “transmission”, I need
to be able to gain access to the time of capture of wireshark in order to
calculate the difference.  Anybody know an example/documentation pointer?

I believe pinfo->fd->abs_ts has what you're looking for.  But you'll need the
clocks of the transmitting and capturing devices to be synchronized in order to
obtain any meaningful latency calculations.