diff options
author | Silvio Gissi <silvio.gissi@gmail.com> | 2017-06-24 17:52:21 -0700 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2017-06-25 08:24:48 +0000 |
commit | 80d3483f3463b8e5ed73f019dbf431656410f658 (patch) | |
tree | 03c4b920e7e13c59d22373f24ddb272ecd48448e /epan | |
parent | 5f7902d1659a138515f01ecf9ade3d271befc029 (diff) | |
download | wireshark-80d3483f3463b8e5ed73f019dbf431656410f658.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>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-mpls-y1711.c | 6 |
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; |