Wireshark-dev: Re: [Wireshark-dev] 64bit math
From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 14 Aug 2006 12:00:55 -0700
Erwin Rol wrote:

If i remember right 64bit is a bit problematic due to portability,

Some 64-bit arithmetic snuck into the code base a while ago, and nobody complained, so we're now allowing it.

Use "gint64" and "guint64" for 64-bit signed and unsigned integral values, respectively. We have FT_INT64 and FT_UINT64 field types, and routines to fetch 64-bit big-endian and little-endian values.

so i have a question, how do i do the following in a "correct" way. For mpeg transport stream dissecting i need to get a a 42bit value from 48bits,

Unfortunately, we don't yet have routines to fetch 48-bit big-endian and little-endian values.