From owner-freebsd-current Fri Dec 5 14:14:12 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA15917 for current-outgoing; Fri, 5 Dec 1997 14:14:12 -0800 (PST) (envelope-from owner-freebsd-current) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA15912 for ; Fri, 5 Dec 1997 14:14:10 -0800 (PST) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id OAA06641; Fri, 5 Dec 1997 14:06:35 -0800 (PST) Received: from UNKNOWN(), claiming to be "current1.whistle.com" via SMTP by alpo.whistle.com, id smtpd006639; Fri Dec 5 14:06:35 1997 Date: Fri, 5 Dec 1997 14:04:11 -0800 (PST) From: Julian Elischer To: Ari Suutari cc: Eivind Eklund , John Kelly , current@freebsd.org Subject: Re: 3.0 -release ? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk This is a mess. I am half way through making up some patches to fix it properly. (literally I have a window at work with the half-editted sources on it :) htons will correctly smash up the lower 16 bits of a long under a little-endian OS. so using htons, while being totoally un-portable will probably work, but htonl will do the correct thing, and the lower 16 bits of the port will become 0. The correct answer is to change teh port numbers where-ever they are in natd to be unsigned short. I am doing this.. I'll add the changes in a few days. julian > > htons works, htonl doesn't. Maybe I didn't read the patch > very carefully - my current sources (natd 1.10) used > htons and I tried htonl which did not work. > > Apparently, the version present in -current is not the > the same as my 1.10. There seem to be a lot of small > changes made by someone. > > Ari > Lappeenranta, Finland > >