Ethereal-dev: Re: [Ethereal-dev] Format of multi-byte integers assembled by proto_tree_add_

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

From: Gilbert Ramirez <gram@xxxxxxxxxxxxxxx>
Date: 12 Mar 2002 14:44:48 -0600
On Tue, 2002-03-12 at 14:40, Richard Sharpe wrote:
> Hi,
> 
> Do the routines proto_tree_add_item treat data in the tvb as if it is in 
> network byte order when adding a UINT32 or UINT16, for example?
> 
> Regards
> -----
> Richard Sharpe, rsharpe@xxxxxxxxxx, rsharpe@xxxxxxxxx, 
> sharpe@xxxxxxxxxxxx
> 
> 

You tell it; that's why proto_tree_add_item() has the little_endian
argument, TRUE if little-endian, FALSE if big-endian (network order).

--gilbert