Correct endianness issues for IPv4 addresses and Ethertype