beginner question, byteorder.h

Jeremy Allison jra at
Sun Nov 18 23:11:15 GMT 2007

On Sun, Nov 18, 2007 at 12:46:40PM -0800, Milan Bella wrote:
> What is the deafult byteorder of SMB packet ?


> In my opinion the only one assumption  that uint16 is _at_least_ 16
> long is not sufficent. The packet byteorder
> must be known beforehand, for if not then we cannot interpret the
> packet value at pos at all.

SMB packets are *always* little-endian, except for
the places that aren't.

We always know which is which, so the code in
byteorder.h works.


More information about the samba-technical mailing list