summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Gissi <silvio.gissi@gmail.com>2017-06-24 17:52:21 -0700
committerAnders Broman <a.broman58@gmail.com>2017-06-25 10:51:40 +0000
commit79f7f86e3d9d62a4ad6012bfd2982bc5ff220180 (patch)
tree70fe8c531a5d9435fc13f0eb5d1b07ebb8fb7b55
parent5f244ed4df6c1b4e84e244c4efa5fbb5b4f11ce2 (diff)
downloadwireshark-79f7f86e3d9d62a4ad6012bfd2982bc5ff220180.tar.gz
Fix Y.1711 endianness
ITU Y.1711 at https://www.itu.int/rec/T-REC-Y.1711-200402-I/en states that OAM payloads are big endian (section 5.3) as reported on bug. Bug: 8292 Change-Id: Id30e340eee5f5a5c96020cdd1770fa48adb5d169 Reviewed-on: https://code.wireshark.org/review/22383 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> (cherry picked from commit 80d3483f3463b8e5ed73f019dbf431656410f658) Reviewed-on: https://code.wireshark.org/review/22389 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--epan/dissectors/packet-mpls-y1711.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-mpls-y1711.c b/epan/dissectors/packet-mpls-y1711.c
index 0937890f4d..c84f110b99 100644
--- a/epan/dissectors/packet-mpls-y1711.c
+++ b/epan/dissectors/packet-mpls-y1711.c
@@ -220,7 +220,7 @@ dissect_mpls_y1711(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *da
proto_tree_add_item(mpls_y1711_tree, hf_mpls_y1711_defect_type, tvb,
offset, 2,
- ENC_LITTLE_ENDIAN);
+ ENC_BIG_ENDIAN);
offset += 2;
/*
@@ -251,7 +251,7 @@ dissect_mpls_y1711(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *da
/* defect location */
proto_tree_add_item(mpls_y1711_tree, hf_mpls_y1711_defect_location, tvb,
offset, 4,
- ENC_LITTLE_ENDIAN);
+ ENC_BIG_ENDIAN);
offset += 4;
/* 14 octets of padding (all 0x00) */
@@ -307,7 +307,7 @@ dissect_mpls_y1711(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *da
/* BIP16 */
proto_tree_add_item(mpls_y1711_tree, hf_mpls_y1711_bip16, tvb, offset, 2,
- ENC_LITTLE_ENDIAN);
+ ENC_BIG_ENDIAN);
offset += 2;
return offset;