Date: Sat, 06 Dec 1997 13:09:51 +1030 From: Mike Smith <mike@smith.net.au> To: Eivind Eklund <perhaps@yes.no> Cc: Ari Suutari <ari@suutari.iki.fi>, John Kelly <jak@cetlink.net>, current@FreeBSD.ORG Subject: Re: 3.0 -release ? Message-ID: <199712060239.NAA01232@word.smith.net.au> In-Reply-To: Your message of "05 Dec 1997 02:20:24 BST." <86k9dkegbr.fsf@bitbox.follo.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> > Using htonl() on a port number at least seems to be wrong - port > numbers are 16 bits. Signed/unsigned trouble too, perhaps? Heh. Port numbers are 16 bits, but they are passed around in ints. If you follow the code through the kernel, you will see htonl() being used on a regular basis. There was a thread "Memory leak in getservbyXXX" on -hackers a while back in which this was discussed. I still haven't attacked the manpages to deal with the outcome of this discussion, as the magnitude of the obvious task was daunting in the extreme. mike
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712060239.NAA01232>