mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 13:34:38 +08:00

Although ntohs and htons perform equivalent operations (a byte swap on little-endian platforms), their semantic roles (as implied by the names) are different. In fuzz_common.c, we get integers from simulated network packages, and convert them for host CPU use, so ntohs is the right variant to use.