Date: Mon, 28 Feb 2000 16:50:05 +0200 From: Ruslan Ermilov <ru@ucb.crimea.ua> To: Rahul Dhesi <dhesi@rahul.net> Cc: freebsd-stable@FreeBSD.ORG Subject: Re: divert(4) non-working code example Message-ID: <20000228165005.A7247@relay.ucb.crimea.ua> In-Reply-To: <20000228140450.4471C99DE4@waltz.rahul.net>; from Rahul Dhesi on Mon, Feb 28, 2000 at 06:04:49AM -0800 References: <20000228140450.4471C99DE4@waltz.rahul.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 28, 2000 at 06:04:49AM -0800, Rahul Dhesi wrote: > I wrote: > > > The following is a relatively simple program that should read and write > > divert-ed packets, without modifying them. But it never returns from the > > recvfrom() system call. Any suggestions? > > Never mind! I searched old mailing list archives and found that > I needed to do htons(port). What threw me off was that I was > consulting the natd(8) sources and they didn't bother doing so. > Why do you spread such misinformation? See StrToPort() function in natd(8) sources. -- Ruslan Ermilov Sysadmin and DBA of the ru@ucb.crimea.ua United Commercial Bank, ru@FreeBSD.org FreeBSD committer, +380.652.247.647 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000228165005.A7247>