Use be*toh and htobe* to convert to big-endian