From owner-freebsd-stable Mon Feb 28 6: 5: 2 2000 Delivered-To: freebsd-stable@freebsd.org Received: from waltz.rahul.net (waltz.rahul.net [192.160.13.9]) by hub.freebsd.org (Postfix) with ESMTP id 8302D37B673 for ; Mon, 28 Feb 2000 06:04:55 -0800 (PST) (envelope-from dhesi@rahul.net) Received: by waltz.rahul.net (Postfix, from userid 104) id 4471C99DE4; Mon, 28 Feb 2000 06:04:50 -0800 (PST) To: freebsd-stable@freebsd.org Subject: Re: divert(4) non-working code example Date: Mon, 28 Feb 100 06:04:49 -0800 From: Rahul Dhesi Message-Id: <20000228140450.4471C99DE4@waltz.rahul.net> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. Rahul To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message