Wireshark-dev: Re: [Wireshark-dev] LUA Development Issue - Pulling a Character
From: Ahad L. Amdani <ahad.amdani@xxxxxxxx>
Date: Fri, 29 Sep 2006 14:08:54 +0000 (UTC)
Ahad L. Amdani <ahad.amdani@...> writes:

> 
> LEGO <luis.ontanon <at> ...> writes:
> 
> > 
> > It depends in how you want the char:
> > 
> > - a one byte unsigned integer can be taken with u = tvb(offset,1):get_uint
()
> 
> I'm pulling a single, readable character (looking for a Y or an N) from the 
> packet.
> 

Okay, correction: it's a 1 byte character with the 8 bits meaning individual 
things, and I've implemented it as a 1 byte unsigned integer for now, so I get 
outputs such as 128 or 255, etc.

Thanks for all the help,
  Ahad