ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] tvb_get_ntohl with reversed data

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Tue, 6 Dec 2011 10:34:47 -0800
On Dec 6, 2011, at 7:26 AM, Yegor Yefremov wrote:

> The issue left is milliseconds conversion. AFAIK nsec is an int value, so
> it is not enough even for a second :-(

OK, divide milliseconds by 1000 and add it to secs, and take the remainder, multiply it by 1000000, and put it into nsecs.