aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-epl.c
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2017-06-02 07:44:22 +0200
committerRoland Knall <rknall@gmail.com>2017-06-02 07:56:23 +0000
commit10e59dba2b1ee123b4fdfbee288b486471cc68e0 (patch)
tree3977b59851c6b58186755253fa7da7e9c974078a /epan/dissectors/packet-epl.c
parent5a06efc29d8a850571ca7cee16437900f3694fbb (diff)
packet-epl.c: Change CANopen Unicode_String to little endian
CANopen DS301 defines "Unicode_String" as "ARRAY [ length ] OF UNSIGNED16" and states "For numerical data types the encoding is little endian style". Change-Id: I146449d7eaafe58b337b505682b14cd672f8ad76 Reviewed-on: https://code.wireshark.org/review/21891 Petri-Dish: Roland Knall <rknall@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-epl.c')
-rw-r--r--epan/dissectors/packet-epl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-epl.c b/epan/dissectors/packet-epl.c
index dca81fb8eb..00bab8b874 100644
--- a/epan/dissectors/packet-epl.c
+++ b/epan/dissectors/packet-epl.c
@@ -1698,7 +1698,7 @@ static const struct epl_datatype {
{ "Real64", &hf_epl_od_real, ENC_LITTLE_ENDIAN, 8 },
{ "Visible_String", &hf_epl_od_string, ENC_ASCII, 0 },
{ "Octet_String", &hf_epl_od_octet_string, ENC_NA, 0 },
- { "Unicode_String", &hf_epl_od_string, ENC_UCS_2, 0 },
+ { "Unicode_String", &hf_epl_od_string, ENC_UCS_2 | ENC_LITTLE_ENDIAN, 0 },
{ "MAC_ADDRESS", &hf_epl_od_mac, ENC_BIG_ENDIAN, 6 },
{ "IP_ADDRESS", &hf_epl_od_ipv4, ENC_BIG_ENDIAN, 4 },
@@ -6052,7 +6052,7 @@ proto_register_epl(void)
},
{ &hf_epl_od_string,
{ "Data", "epl.od.data.string",
- FT_STRING, STR_ASCII, NULL, 0x00, NULL, HFILL }
+ FT_STRING, STR_UNICODE, NULL, 0x00, NULL, HFILL }
},
{ &hf_epl_od_octet_string,
{ "Data", "epl.od.data.bytestring",