[PowerPC64LE] Use correct in_masks table on LE to fix checksumming
authorBrandon Bergren <bdragon@FreeBSD.org>
Tue, 15 Sep 2020 20:47:33 +0000 (20:47 +0000)
committerBrandon Bergren <bdragon@FreeBSD.org>
Tue, 15 Sep 2020 20:47:33 +0000 (20:47 +0000)
commit9673f305038f6d71a92b1ba94aa84a3b36d0aa6d
tree93048de2f11bc16570c3e5b8e5f1f5d05f887658
parent1e936efbce1c2e84406587cac39559a8cc16c8ca
[PowerPC64LE] Use correct in_masks table on LE to fix checksumming

Due to a check that should have been an endian check being an #if 0,
the wrong checksum mask table was being used on LE, which was causing
extreme strangeness in DNS resolution -- *some* hosts would be resolvable,
but most would not.

This fixes DNS resolution.

(I am committing some parts of the LE patchset ahead of time to reduce the
amount of work I have to do while committing the main patchset.)

Sponsored by: Tag1 Consulting, Inc.
sys/powerpc/powerpc/in_cksum.c