On May 5, 2011, at 11:39 AM, Brian Oleksa wrote:
> Most network traffic is in network byte order and uses Big-Endian.
Actually, lots of network traffic is plain text or raw binary data (HTTP, for
example), and SMB/SMB2 are little-endian except for the raw binary data (read
and write payload) -
On Thu, May 05, 2011 at 02:39:05PM -0400, Brian Oleksa wrote:
> Before I write my own "bit decoder"...is there any built in functions
> that will "convert" Little-Endian to Big-Endian for me..??
http://developer.gnome.org/glib/unstable/glib-Byte-Order-Macros.html
You are interested in G*_SWAP_LE_
Most network traffic is in network byte order and uses Big-Endian.
I am trying to dissect a packet that uses Little-Endian.
Before I write my own "bit decoder"...is there any built in functions
that will "convert" Little-Endian to Big-Endian for me..??
Thanks,
Brian
___