Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] basic question

From: Brian Oleksa <oleksab@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 01 Nov 2010 11:33:47 -0400
Chris

Thanks.....I figured there was something else I was missing.

So I guess I should use the following to grab 4 bytes..??

guint32 tvb_get_ntohl(tvbuff_t*, gint offset);

Thanks,
Brian



On 11/1/2010 11:24 AM, Christopher Maynard wrote:
Brian Oleksa<oleksab@...>  writes:

Will this work if I just change the size and offset from 8 to 4..??
basic answer: no. :)

You are still grabbing 8 bytes from the tvb instead of only 4:
msecs_since_the_epoch = tvb_get_ntoh64(tvb, offset);



___________________________________________________________________________
Sent via:    Wireshark-dev mailing list<wireshark-dev@xxxxxxxxxxxxx>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
              mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe