diff options
author | Petr Gotthard <petr.gotthard@honeywell.com> | 2015-06-11 22:59:38 -0700 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2015-06-11 17:37:10 +0000 |
commit | 7a927d60d48570a6b33ceafccff55b6045d259aa (patch) | |
tree | 265893087865ae7d25eea743850465a2689374f3 /epan/dissectors | |
parent | 74421b35c2c79fddd0c596a609b997e80e5570cc (diff) | |
download | wireshark-7a927d60d48570a6b33ceafccff55b6045d259aa.tar.gz |
AMQP 1.0: float/double should be in network byte order
The standard says that (unless otherwise specified) AMQP uses
network byte order for all numeric values.
Change-Id: I3ca154a6fb882d9194a9af891f92f760aae776eb
Reviewed-on: https://code.wireshark.org/review/8889
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-amqp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-amqp.c b/epan/dissectors/packet-amqp.c index 097509618d..6cfd552385 100644 --- a/epan/dissectors/packet-amqp.c +++ b/epan/dissectors/packet-amqp.c @@ -10927,7 +10927,7 @@ format_amqp_1_0_float(tvbuff_t *tvb, const char **value) { float floatval; - floatval = tvb_get_letohieee_float(tvb, offset); + floatval = tvb_get_ntohieee_float(tvb, offset); *value = wmem_strdup_printf(wmem_packet_scope(), "%f", floatval); return 4; } @@ -10938,7 +10938,7 @@ format_amqp_1_0_double(tvbuff_t *tvb, const char **value) { double doubleval; - doubleval = tvb_get_letohieee_double(tvb, offset); + doubleval = tvb_get_ntohieee_double(tvb, offset); *value = wmem_strdup_printf(wmem_packet_scope(), "%f", doubleval); return 8; } |