From owner-freebsd-net Sat Nov 30 11:45:11 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 5FA5C37B401 for ; Sat, 30 Nov 2002 11:45:10 -0800 (PST) Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1505F43ECF for ; Sat, 30 Nov 2002 11:45:10 -0800 (PST) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org (12-232-168-4.client.attbi.com[12.232.168.4]) by rwcrmhc53.attbi.com (rwcrmhc53) with ESMTP id <200211301945090530066cj4e>; Sat, 30 Nov 2002 19:45:09 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id LAA89519; Sat, 30 Nov 2002 11:41:22 -0800 (PST) Date: Sat, 30 Nov 2002 11:41:21 -0800 (PST) From: Julian Elischer To: Nimrod Mesika Cc: freebsd-net@FreeBSD.ORG Subject: Re: Divert Socket And Q. About Raw Socket In-Reply-To: <20021130145341.GA1272@localhost.bsd.net.il> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 also, try: man divert It's is quite detailed. On Sat, 30 Nov 2002, Nimrod Mesika wrote: > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message