Date: Thu, 13 Nov 1997 11:46:16 +0000 From: Brian Somers <brian@awfulhak.org> To: Feiyi Wang <fwang2@eos.ncsu.edu> Cc: Archie Cobbs <archie@whistle.com>, questions@FreeBSD.ORG, brian@awfulhak.org Subject: Re: Divert Socket Problem Message-ID: <199711131146.LAA13909@awfulhak.demon.co.uk> In-Reply-To: Your message of "Wed, 12 Nov 1997 22:00:10 EST." <346A6D3A.299F@eos.ncsu.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
> I should be damned, now the problem is solved. Archie is right, I forgot
> use htons() to convert the port number. I have a "good reason" of not
> doing that :-), I am refering "natd" source code, and it didn't use
> htons at all, should that be a bug?
[.....]
Natd's being a bit obscure (and a bit wrong). It does a *htons*
at argument parsing time.
I've just fixed it so it does a htonl().
--
Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <bri@OpenBSD.org>
<http://www.Awfulhak.org>
Don't _EVER_ lose your sense of humour....
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711131146.LAA13909>
