fixed packet header checksum calculations