fixed the endianness of icmp types and codes