HomeFreeBSD

ICMP checksum test: Fix for big endian

Description

ICMP checksum test: Fix for big endian

The in_cksum tests originally tried to simulate a BE environment by
swapping the byte order of the input. But that's overcomplicated, and
didn't actually work on real BE hardware. The correct testing strategy
is just to test on the native endianness, and run the tests in both BE
and LE environments.

Submitted by: Renato Riolino <renato.riolino@eldorado.org.br>
Reviewed By: asomers
Differential Revision: https://reviews.freebsd.org/D23193

(cherry picked from commit 292808246db702b9194deb8938e40fd06914aea9)

Details

Provenance
renato.riolino_eldorado.org.brAuthored on Jan 12 2021, 1:56 AM
asomersCommitted on Oct 7 2021, 5:38 PM
Reviewer
asomers
Differential Revision
D23193: ICMP checksum test: Fix for big endian
Parents
rG1ee0746e1af0: MFC uipc_shm: Fix kern.ipc.posix_shm_list for jails
Branches
Unknown
Tags
Unknown