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.