diff options
author | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-10-06 03:35:44 +0000 |
---|---|---|
committer | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-10-06 03:35:44 +0000 |
commit | 13916f0a6e6f6afb3da02ed4a9d8feb3a5471682 (patch) | |
tree | 0896080ffb80104f2c23e3f8c273080088cff7cd /epan/dissectors/packet-ntlmssp.c | |
parent | b6bfa63bd15d6f3a15ed9bed687e99510603c962 (diff) |
Convert 'encoding' parameter of certain proto_tree_add_item() calls in non-autogenerated epan/dissectors:
Specifically: Replace FALSE|0 and TRUE|1 by ENC_BIG_ENDIAN|ENC_LITTLE_ENDIAN as
the encoding parameter for proto_tree_add_item() calls which directly reference
an item in hf[] which has a type of:
FT_UINT8
FT_UINT16
FT_UINT24
FT_UINT32
FT_UINT64
FT_INT8
FT_INT16
FT_INT24
FT_INT32
FT_INT64
FT_FLOAT
FT_DOUBLE
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39288 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-ntlmssp.c')
-rw-r--r-- | epan/dissectors/packet-ntlmssp.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/epan/dissectors/packet-ntlmssp.c b/epan/dissectors/packet-ntlmssp.c index 3ced90e808..7cef993a09 100644 --- a/epan/dissectors/packet-ntlmssp.c +++ b/epan/dissectors/packet-ntlmssp.c @@ -1340,13 +1340,13 @@ dissect_ntlmv2_response(tvbuff_t *tvb, proto_tree *tree, int offset, int len) proto_tree_add_item( ntlmv2_tree, hf_ntlmssp_ntlmv2_response_header, tvb, - offset, 4, TRUE); + offset, 4, ENC_LITTLE_ENDIAN); offset += 4; proto_tree_add_item( ntlmv2_tree, hf_ntlmssp_ntlmv2_response_reserved, tvb, - offset, 4, TRUE); + offset, 4, ENC_LITTLE_ENDIAN); offset += 4; @@ -1361,7 +1361,7 @@ dissect_ntlmv2_response(tvbuff_t *tvb, proto_tree *tree, int offset, int len) proto_tree_add_item( ntlmv2_tree, hf_ntlmssp_ntlmv2_response_unknown, tvb, - offset, 4, TRUE); + offset, 4, ENC_LITTLE_ENDIAN); offset += 4; @@ -1979,7 +1979,7 @@ dissect_ntlmssp_payload(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree ) TRY { /* Version number */ proto_tree_add_item (ntlmssp_tree, hf_ntlmssp_verf_vers, - tvb, offset, 4, TRUE); + tvb, offset, 4, ENC_LITTLE_ENDIAN); offset += 4; /* Encrypted body */ @@ -2160,7 +2160,7 @@ dissect_ntlmssp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* NTLMSSP Message Type */ proto_tree_add_item (ntlmssp_tree, hf_ntlmssp_message_type, - tvb, offset, 4, TRUE); + tvb, offset, 4, ENC_LITTLE_ENDIAN); ntlmssph->type = tvb_get_letohl (tvb, offset); offset += 4; @@ -2375,12 +2375,12 @@ decrypt_verifier(tvbuff_t *tvb, int offset, guint32 encrypted_block_length, /* RANDOM PAD usually it's 0 */ proto_tree_add_item (decr_tree, hf_ntlmssp_verf_randompad, - decr_tvb, decrypted_offset, 4, TRUE); + decr_tvb, decrypted_offset, 4, ENC_LITTLE_ENDIAN); decrypted_offset += 4; /* CRC32 of the DCE fragment data */ proto_tree_add_item (decr_tree, hf_ntlmssp_verf_crc32, - decr_tvb, decrypted_offset, 4, TRUE); + decr_tvb, decrypted_offset, 4, ENC_LITTLE_ENDIAN); decrypted_offset += 4; /* Incrementing sequence number of DCE conversation */ @@ -2497,7 +2497,7 @@ dissect_ntlmssp_verf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) TRY { /* Version number */ proto_tree_add_item (ntlmssp_tree, hf_ntlmssp_verf_vers, - tvb, offset, 4, TRUE); + tvb, offset, 4, ENC_LITTLE_ENDIAN); offset += 4; /* Encrypted body */ |