From: Miod Vallat Subject: Re: Cruft: drop htonl() etc. from libc To: Claudio Jeker Cc: Christian Weisgerber , tech@openbsd.org Date: Fri, 12 Apr 2024 07:18:54 +0000 > > + return __htobe16(x); > > This looks the wrong way around. ntohs() is be16toh(). Same for ntohl > above. While it does not matter for our cases I think we should use the > right conversions here. I had this concern, too, but since we define be16toh as __htobe16 this doesn't really matter.