From 1725eee48e46a5cb4037a83910044f2d5e807261 Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Sat, 13 Dec 2014 16:26:07 -0500 Subject: Use ENC_BIG_ENDIAN when fetching FT_U?INT8 fields ... Change-Id: Ie8cb993bb9dd3e8dbfa1876a4e731bca10ee0507 Reviewed-on: https://code.wireshark.org/review/5754 Reviewed-by: Bill Meier --- epan/dissectors/packet-llc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'epan/dissectors/packet-llc.c') diff --git a/epan/dissectors/packet-llc.c b/epan/dissectors/packet-llc.c index 2246af9331..08e72e8e20 100644 --- a/epan/dissectors/packet-llc.c +++ b/epan/dissectors/packet-llc.c @@ -448,15 +448,15 @@ dissect_llc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) ti = proto_tree_add_item(tree, proto_llc, tvb, 0, -1, ENC_NA); llc_tree = proto_item_add_subtree(ti, ett_llc); - sap_item = proto_tree_add_item(llc_tree, hf_llc_dsap, tvb, 0, 1, ENC_NA); + sap_item = proto_tree_add_item(llc_tree, hf_llc_dsap, tvb, 0, 1, ENC_BIG_ENDIAN); field_tree = proto_item_add_subtree(sap_item, ett_llc_dsap); - proto_tree_add_item(field_tree, hf_llc_dsap_sap, tvb, 0, 1, ENC_NA); + proto_tree_add_item(field_tree, hf_llc_dsap_sap, tvb, 0, 1, ENC_BIG_ENDIAN); proto_tree_add_item(field_tree, hf_llc_dsap_ig, tvb, 0, 1, ENC_NA); ssap = tvb_get_guint8(tvb, 1); - sap_item = proto_tree_add_item(llc_tree, hf_llc_ssap, tvb, 1, 1, ENC_NA); + sap_item = proto_tree_add_item(llc_tree, hf_llc_ssap, tvb, 1, 1, ENC_BIG_ENDIAN); field_tree = proto_item_add_subtree(sap_item, ett_llc_ssap); - proto_tree_add_item(field_tree, hf_llc_ssap_sap, tvb, 1, 1, ENC_NA); + proto_tree_add_item(field_tree, hf_llc_ssap_sap, tvb, 1, 1, ENC_BIG_ENDIAN); proto_tree_add_item(field_tree, hf_llc_ssap_cr, tvb, 1, 1, ENC_NA); is_snap = (dsap == SAP_SNAP) && (ssap == SAP_SNAP); -- cgit v1.2.3