aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorPeter Membrey <peter@membrey.hk>2016-02-22 11:21:30 +0800
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2016-02-22 17:11:25 +0000
commit614c7fb9f4f42d3faefb76a3a6a5fc47c8136b17 (patch)
tree8bb1babd62acb3164917abc17cc3c8077345609b /epan
parent5beb48b843e7e8194539f795688cf47c5c7aea28 (diff)
Cisco Marker: Fix endian type for some field
Fixed several decoded fields that were poorly described in the original documentation Change-Id: I688c5fd7e011d0dd49fb201ca294348d177bb4fa Reviewed-on: https://code.wireshark.org/review/14067 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-cisco-marker.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/epan/dissectors/packet-cisco-marker.c b/epan/dissectors/packet-cisco-marker.c
index 1482dcc93d..4d2fda2809 100644
--- a/epan/dissectors/packet-cisco-marker.c
+++ b/epan/dissectors/packet-cisco-marker.c
@@ -54,12 +54,12 @@ static header_field_info cisco_erspan_info CISCO_ERSPAN_MARKER_HFI_INIT =
static header_field_info cisco_erspan_version CISCO_ERSPAN_MARKER_HFI_INIT =
{ "Version", "cisco_erspan_marker.version",
- FT_UINT16, BASE_DEC, NULL, 0xf000,
+ FT_UINT16, BASE_DEC, NULL, 0x0f00,
NULL, HFILL };
static header_field_info cisco_erspan_type CISCO_ERSPAN_MARKER_HFI_INIT =
{ "Type", "cisco_erspan_marker.type",
- FT_UINT16, BASE_DEC, NULL, 0x0f00,
+ FT_UINT16, BASE_DEC, NULL, 0xf000,
NULL, HFILL };
static header_field_info cisco_erspan_ssid CISCO_ERSPAN_MARKER_HFI_INIT =
@@ -135,16 +135,16 @@ dissect_marker(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _
proto_tree_add_item(marker_tree, &cisco_erspan_info, tvb, offset, 2, ENC_LITTLE_ENDIAN);
offset += 2;
- proto_tree_add_item(marker_tree, &cisco_erspan_version, tvb, offset, 2, ENC_LITTLE_ENDIAN);
- proto_tree_add_item(marker_tree, &cisco_erspan_type, tvb, offset, 2, ENC_LITTLE_ENDIAN);
- proto_tree_add_item(marker_tree, &cisco_erspan_ssid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
+ proto_tree_add_item(marker_tree, &cisco_erspan_version, tvb, offset, 2, ENC_BIG_ENDIAN);
+ proto_tree_add_item(marker_tree, &cisco_erspan_type, tvb, offset, 2, ENC_BIG_ENDIAN);
+ proto_tree_add_item(marker_tree, &cisco_erspan_ssid, tvb, offset, 2, ENC_BIG_ENDIAN);
offset += 2;
- proto_tree_add_item(marker_tree, &cisco_erspan_granularity, tvb, offset, 2, ENC_LITTLE_ENDIAN);
- proto_tree_add_item(marker_tree, &cisco_erspan_utcoffset, tvb, offset, 2, ENC_LITTLE_ENDIAN);
+ proto_tree_add_item(marker_tree, &cisco_erspan_granularity, tvb, offset, 2, ENC_BIG_ENDIAN);
+ proto_tree_add_item(marker_tree, &cisco_erspan_utcoffset, tvb, offset, 2, ENC_BIG_ENDIAN);
offset+= 2;
- proto_tree_add_item(marker_tree, &cisco_erspan_timestamp, tvb, offset, 4, ENC_LITTLE_ENDIAN);
+ proto_tree_add_item(marker_tree, &cisco_erspan_timestamp, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;
proto_tree_add_item(marker_tree, &cisco_erspan_utc_sec, tvb, offset, 4, ENC_LITTLE_ENDIAN);