Ethereal-dev: Re: [ethereal-dev] signed integer support

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Gilbert Ramirez <gram@xxxxxxxxxx>
Date: Fri, 8 Oct 1999 16:47:59 -0500
On Fri, Oct 08, 1999 at 03:22:11PM -0500, Phil Techau wrote:
> 
> 
> Gentlemen,
> 
> I needed signed integer support for a proprietary protocol, so I've
> added it with the attached mods: this time as a "cvs diff".  I guess at
> some point I'd like to get the capability to put my own mods in the cvs
> respository.
> 
> For now when using hex notation, you have to sign extend the value
> you're looking for if you look for negative values in a signed field.
> As an example, if you have an FT_INT8 field, you can search for a value
> of -128, but searching for 0x80 won't work ( 0xFFFFFF80 will, at least
> on a 32 bit int machine).  This could be somewhat exasperating for an
> end user, so I'll probably work on cleaning that up some later.

Thanks. I'll merge this into my current work on the proto_tree changes.

--gilbert