From owner-freebsd-net Sat Nov 30 7: 1:13 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7727D37B401 for ; Sat, 30 Nov 2002 07:01:12 -0800 (PST) Received: from m1.bezeqint.net (m1.bezeqint.net [192.115.106.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3338843E88 for ; Sat, 30 Nov 2002 07:01:11 -0800 (PST) (envelope-from nimrod-me@bezeqint.net) Received: from localhost.bsd.net.il (bzq-231-153.red.bezeqint.net [212.179.231.153]) by m1.bezeqint.net (Mirapoint Messaging Server MOS 3.2.1-GA) with ESMTP id AHM84979; Sat, 30 Nov 2002 17:01:08 +0200 (IST) Received: from localhost.bsd.net.il (nimrodm@localhost [127.0.0.1]) by localhost.bsd.net.il (8.12.6/8.12.6) with ESMTP id gAUErf42001323 for ; Sat, 30 Nov 2002 16:53:41 +0200 (IST) (envelope-from nimrodm@localhost.bsd.net.il) Received: (from nimrodm@localhost) by localhost.bsd.net.il (8.12.6/8.12.3/Submit) id gAUErfeR001322 for freebsd-net@FreeBSD.ORG; Sat, 30 Nov 2002 16:53:41 +0200 (IST) (envelope-from nimrodm) From: Nimrod Mesika Date: Sat, 30 Nov 2002 16:53:41 +0200 To: freebsd-net@FreeBSD.ORG Subject: Re: Divert Socket And Q. About Raw Socket Message-ID: <20021130145341.GA1272@localhost.bsd.net.il> Mail-Followup-To: freebsd-net@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org natd is an example of divert socket usage. Try looking at /usr/src/sbin/natd/natd.c On Sat, Nov 30, 2002 at 12:38:44PM +0000, soheil soheil wrote: > Dear List > first : > I want to know if there is any sample of divert socket usage and divert > socket programming? > I see the ipfw manual it says divert socket is used but when i goto > /usr/src/sbin/ipfw > and trace ipfw.c > i cannot find anything about divert socket i just found a raw socket. -- Nimrod. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message