From owner-freebsd-net Fri Jan 5 11:44:42 2001 From owner-freebsd-net@FreeBSD.ORG Fri Jan 5 11:44:38 2001 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by hub.freebsd.org (Postfix) with ESMTP id 2873537B400 for ; Fri, 5 Jan 2001 11:44:38 -0800 (PST) Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.11.0/8.11.0) id f05JiMb01292; Fri, 5 Jan 2001 11:44:22 -0800 Date: Fri, 5 Jan 2001 11:44:22 -0800 From: Brooks Davis To: =?iso-8859-1?Q?Marcus_Vin=EDcius_Midena_Ramos?= Cc: Guido van Rooij , freebsd-net@FreeBSD.ORG Subject: Re: raw ethernetpackets..how? Message-ID: <20010105114422.G23398@Odin.AC.HMC.Edu> References: <20010105104142.A36057@gvr.gvr.org> <20010105110011.A36934@gvr.gvr.org> <3A55CC63.CAEFF6FE@ansp.br> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2i In-Reply-To: <3A55CC63.CAEFF6FE@ansp.br>; from marcus@ansp.br on Fri, Jan 05, 2001 at 11:30:12AM -0200 Sender: brdavis@odin.ac.hmc.edu Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, Jan 05, 2001 at 11:30:12AM -0200, Marcus Vinícius Midena Ramos wrote: > Try libnet (www.packetfactory.net/libnet). It is for injecting packets. I've you've got plans to port your code to something other then BSD you'll want to use libnet. Note that last time I looked, libnet didn't support the header complete option required to let you send ethernet packets with forged MACs. Also, while libnet is the best option for portable raw writes I know of, I really dislike it. It's full of junk that has nothing to do with it's task (being the compliment of libpcap.) I did use them to write a cute little userland bridge for use as a man in the middle attack on SecureRPC. -- Brooks -- Any statement of the form "X is the one, true Y" is FALSE. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message