Wireshark-dev: Re: [Wireshark-dev] What do you use to get a boolean
From: Jeff Morriss <jeff.morriss@xxxxxxxxxxx>
Date: Mon, 12 Feb 2007 21:37:30 +0800


Hal Lander wrote:
Hi,

There are various routines to get things like "tvb_get_stringz" and "tvb_get_ntohieee_float"
What do you use to get a boolean, I have not found anything?

What's a boolean?

Is it a 32-bit entity?  Frequently, but it might not always be.

You probably want to use one of the size-appropriate functions (like tvb_get_ntohl()).