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.

Date: Tue, 12 Mar 2002 12:46:24 -0800
Is is dependent on the value of the last parameter to the function. If this is
1, the function treats the data as being in little-endian format else
big-endian. 

The function declaration is:
proto_tree_add_item(proto_tree *tree, int hfindex, tvbuff_t *tvb,
                    gint start, gint length, gboolean little_endian)

Dinesh
Richard Sharpe writes:
 > 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
 > 
 > 
 > _______________________________________________
 > Ethereal-dev mailing list
 > Ethereal-dev@xxxxxxxxxxxx
 > http://www.ethereal.com/mailman/listinfo/ethereal-dev
 > 

-- 
Out beyond the ideas of right-doing and wrong-doing there is a field. I'll meet
you there. - Rumi