From 80d3483f3463b8e5ed73f019dbf431656410f658 Mon Sep 17 00:00:00 2001 From: Silvio Gissi Date: Sat, 24 Jun 2017 17:52:21 -0700 Subject: 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 Petri-Dish: Michael Mann Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte --- epan/dissectors/packet-mpls-y1711.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'epan') 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; -- cgit v1.2.1