summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-acr122.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2014-12-13 12:52:20 -0500
committerBill Meier <wmeier@newsguy.com>2014-12-13 18:45:56 +0000
commitf412c9a01aa031ef9f024ee1b8ec60bf4a73edb8 (patch)
treece4c0543d43c0c6f7b84050a1a187e9381c6b8d0 /epan/dissectors/packet-acr122.c
parent7592d39d46ee0f2442cc5263979a0f036f98468b (diff)
downloadwireshark-f412c9a01aa031ef9f024ee1b8ec60bf4a73edb8.tar.gz
Use ENC_BIG_ENDIAN when fetching FT_U?INT8 fields ...
(for some dissectors which fetch all other integral fields using ENC_BIG_ENDIAN). Change-Id: Ic18e3172aad76af12b12d6732c88497be22aed56 Reviewed-on: https://code.wireshark.org/review/5748 Reviewed-by: Bill Meier <wmeier@newsguy.com>
Diffstat (limited to 'epan/dissectors/packet-acr122.c')
-rw-r--r--epan/dissectors/packet-acr122.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-acr122.c b/epan/dissectors/packet-acr122.c
index dc579ad655..3269223bfa 100644
--- a/epan/dissectors/packet-acr122.c
+++ b/epan/dissectors/packet-acr122.c
@@ -324,19 +324,19 @@ dissect_acr122(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
col_add_fstr(pinfo->cinfo, COL_INFO, "Command: %s", val_to_str_ext_const(command, &command_vals_ext, "Unknown"));
- proto_tree_add_item(main_tree, hf_class, tvb, offset, 1, ENC_NA);
+ proto_tree_add_item(main_tree, hf_class, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
- proto_tree_add_item(main_tree, hf_ins, tvb, offset, 1, ENC_NA);
+ proto_tree_add_item(main_tree, hf_ins, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
- p1_item = proto_tree_add_item(main_tree, hf_p1, tvb, offset, 1, ENC_NA);
+ p1_item = proto_tree_add_item(main_tree, hf_p1, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
- p2_item = proto_tree_add_item(main_tree, hf_p2, tvb, offset, 1, ENC_NA);
+ p2_item = proto_tree_add_item(main_tree, hf_p2, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
- proto_tree_add_item(main_tree, hf_length, tvb, offset, 1, ENC_NA);
+ proto_tree_add_item(main_tree, hf_length, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
switch (command) {