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 08:26:18 +0000
commit344e2b76fe5563e41a12a16012d70754db997c7a (patch)
treebc494ff2310dd332493f718c3c837399b09c8f4e
parenta07d904089c1827c254c3c1fe61a7d4bcaab75e2 (diff)
downloadwireshark-344e2b76fe5563e41a12a16012d70754db997c7a.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/22388 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 ee350e3b2c..bdb88ea05b 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;