GUINT32_SWAP_LE_BE(), not GUINT32_TO_BE() - the latter converts a
host-byte-order value to big-endian, but the host might be big-endian.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11945
f5534014-38df-0310-8fa8-
9805f1628bb7
case FT_IPv4:
g_assert(length == 4);
tvb_memcpy(tvb, (guint8 *)&value, start, 4);
- proto_tree_set_ipv4(new_fi, little_endian ? GUINT32_TO_BE(value) : value);
+ proto_tree_set_ipv4(new_fi, little_endian ? GUINT32_SWAP_LE_BE(value) : value);
break;
case FT_IPXNET: