From owner-freebsd-net@FreeBSD.ORG Thu Jul 17 12:47:14 2003 Return-Path: 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 A08C237B401 for ; Thu, 17 Jul 2003 12:47:14 -0700 (PDT) Received: from hole.shrew.net (cs24354-246.austin.rr.com [24.243.54.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D04143FA3 for ; Thu, 17 Jul 2003 12:47:13 -0700 (PDT) (envelope-from mgrooms@shrew.net) Received: from mail.shrew.net (localhost.shrew.net [127.0.0.1]) by hole.shrew.net (8.12.9/8.12.9) with SMTP id h6HJoCOW063062; Thu, 17 Jul 2003 19:50:12 GMT (envelope-from mgrooms@shrew.net) Message-Id: <200307171950.h6HJoCOW063062@hole.shrew.net> Received: from 65.118.63.254 (auth. user mgrooms@mail.shrew.net) by mail.shrew.net with HTTP; Thu, 17 Jul 2003 19:50:12 +0000 To: soheil_hh@hotmail.com Date: Thu, 17 Jul 2003 19:50:12 +0000 X-Mailer: IlohaMail/0.8.8 (On: mail.shrew.net) From: "Matthew Grooms" Bounce-To: "Matthew Grooms" Errors-To: "Matthew Grooms" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable cc: freebsd-net@freebsd.org Subject: Re: Divert Socket Ported to Windows X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jul 2003 19:47:15 -0000 >Dear All >Is there any package like divert socket available or ported on windows ? >Thanx >Soheil Hassas Yeganeh Soheil, Data is funneled to divert sockets by IPFW ( anyone, please correct me if Im wrong ) or a similar mechanism which are nonexistant on win32. The closest open-source thingy ( to my knowledge ) would be winpcap which is a port of libpcap. ( I believe on *nix this sits on top of BPF or LPF ) You can do raw netowrk data capture with it but not diversion. Win32 uses a layered protocol stack for network services. Its possible to insert a shim at any point that would potentialy be able to 'divert' communication streams ( perhapse via a named pipe ). IIRC, its not a walk in the park to pull off. They do have a downloadable DDK for this somewhere on the msdn site. I would suggest you start your search there. -Matthew