Add a DREP_LITTLE_ENDIAN for the DCE RPC endianness bit in the data
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 19 Jul 2011 23:02:02 +0000 (23:02 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 19 Jul 2011 23:02:02 +0000 (23:02 +0000)
commit8d8b4e0b95564a198034eb051422b29dcf3613a7
treeab893f3a939c2a9a6d469f071dd1460217832ef3
parent070c4469c56026f65bdfd1267fd51f6ae501cc96
Add a DREP_LITTLE_ENDIAN for the DCE RPC endianness bit in the data
representation.  Use it rather than a raw 0x10.

Add a DREP_ENC_INTEGER() macro that takes a pointer to the data
representation and returns either ENC_LITTLE_ENDIAN or ENC_BIG_ENDIAN;
use it for the encoding argument to proto_tree_add_item(), rather than
just the AND of drep[0] and DREP_LITTLE_ENDIAN, as it's not a boolean
any more, and for string values we'll be supporting character encodings
as well and thus won't be able to trust that the 0x10 bit will mean
"little endian".

Use ENC_NA for some other encoding values, i.e. for FT_BYTES and the
like.

Fix a couple of places in the DCOM dissector where we were passing the
byte-order bit rather than the field value to
proto_tree_add_uint_format().

Clean up white space.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38128 f5534014-38df-0310-8fa8-9805f1628bb7
epan/dissectors/dcerpc/drsuapi/packet-dcerpc-drsuapi-template.c
epan/dissectors/packet-dcerpc-drsuapi.c
epan/dissectors/packet-dcerpc-netlogon.c
epan/dissectors/packet-dcerpc-nt.c
epan/dissectors/packet-dcerpc-spoolss.c
epan/dissectors/packet-dcerpc.c
epan/dissectors/packet-dcerpc.h
epan/dissectors/packet-dcom.c
plugins/profinet/packet-dcerpc-pn-io.c