mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-30 12:32:37 +00:00
c2f9244137
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.