aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tzsp.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-tzsp.c
parent7592d39d46ee0f2442cc5263979a0f036f98468b (diff)
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-tzsp.c')
-rw-r--r--epan/dissectors/packet-tzsp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/epan/dissectors/packet-tzsp.c b/epan/dissectors/packet-tzsp.c
index ac8467c4ef..819122cc37 100644
--- a/epan/dissectors/packet-tzsp.c
+++ b/epan/dissectors/packet-tzsp.c
@@ -180,10 +180,10 @@ add_option_info(tvbuff_t *tvb, int pos, proto_tree *tree, proto_item *ti)
length = 0;
}
- proto_tree_add_item(tag_tree, hf_option_tag, tvb, pos, 1, ENC_NA);
+ proto_tree_add_item(tag_tree, hf_option_tag, tvb, pos, 1, ENC_BIG_ENDIAN);
pos++;
if ((tag != TZSP_HDR_PAD) && (tag != TZSP_HDR_END)) {
- proto_tree_add_item(tag_tree, hf_option_length, tvb, pos, 1, ENC_NA);
+ proto_tree_add_item(tag_tree, hf_option_length, tvb, pos, 1, ENC_BIG_ENDIAN);
pos++;
}
@@ -203,15 +203,15 @@ add_option_info(tvbuff_t *tvb, int pos, proto_tree *tree, proto_item *ti)
break;
case WLAN_RADIO_HDR_SIGNAL:
- proto_tree_add_item(tag_tree, hf_signal, tvb, pos, 1, ENC_NA);
+ proto_tree_add_item(tag_tree, hf_signal, tvb, pos, 1, ENC_BIG_ENDIAN);
break;
case WLAN_RADIO_HDR_NOISE:
- proto_tree_add_item(tag_tree, hf_silence, tvb, pos, 1, ENC_NA);
+ proto_tree_add_item(tag_tree, hf_silence, tvb, pos, 1, ENC_BIG_ENDIAN);
break;
case WLAN_RADIO_HDR_RATE:
- proto_tree_add_item(tag_tree, hf_rate, tvb, pos, 1, ENC_NA);
+ proto_tree_add_item(tag_tree, hf_rate, tvb, pos, 1, ENC_BIG_ENDIAN);
break;
case WLAN_RADIO_HDR_TIMESTAMP:
@@ -219,7 +219,7 @@ add_option_info(tvbuff_t *tvb, int pos, proto_tree *tree, proto_item *ti)
break;
case WLAN_RADIO_HDR_MSG_TYPE:
- proto_tree_add_item(tag_tree, hf_status_msg_type, tvb, pos, 1, ENC_NA);
+ proto_tree_add_item(tag_tree, hf_status_msg_type, tvb, pos, 1, ENC_BIG_ENDIAN);
break;
case WLAN_RADIO_HDR_CF:
@@ -238,7 +238,7 @@ add_option_info(tvbuff_t *tvb, int pos, proto_tree *tree, proto_item *ti)
break;
case WLAN_RADIO_HDR_CHANNEL:
- proto_tree_add_item(tag_tree, hf_channel, tvb, pos, 1, ENC_NA);
+ proto_tree_add_item(tag_tree, hf_channel, tvb, pos, 1, ENC_BIG_ENDIAN);
break;
case TZSP_HDR_SENSOR: