From owner-freebsd-hackers Thu Mar 15 19:44:30 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from cody.jharris.com (cody.jharris.com [205.238.128.83]) by hub.freebsd.org (Postfix) with ESMTP id 7931137B718 for ; Thu, 15 Mar 2001 19:44:26 -0800 (PST) (envelope-from nick@rogness.net) Received: from localhost (nick@localhost) by cody.jharris.com (8.11.1/8.9.3) with ESMTP id f2G3mOS07879 for ; Thu, 15 Mar 2001 21:48:28 -0600 (CST) (envelope-from nick@rogness.net) Date: Thu, 15 Mar 2001 21:48:24 -0600 (CST) From: Nick Rogness X-Sender: nick@cody.jharris.com To: freebsd-hackers@freebsd.org Subject: natd divert injecting clarifications Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Just to be sure I have it right. When the kernel diverts the packet to natd, via ipfw: 1) kernel sends packet to natd 2) natd read() the packet 3) natd screws with it (changes dest addr,etc) 4) natd write() the packet 5) kernel reinjects the packet back into the firewall That's what I could get out of divert(4) and some of the natd source. Bare with me...I'm a novice programmer. Is this correct? Nick Rogness - Keep on routing in a Free World... "FreeBSD: The Power to Serve!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message