From owner-freebsd-net@FreeBSD.ORG Fri Sep 30 04:17:49 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 9CCBA16A41F for ; Fri, 30 Sep 2005 04:17:49 +0000 (GMT) (envelope-from kamal_ckk@yahoo.com) Received: from web35706.mail.mud.yahoo.com (web35706.mail.mud.yahoo.com [66.163.179.160]) by mx1.FreeBSD.org (Postfix) with SMTP id 2B58C43D48 for ; Fri, 30 Sep 2005 04:17:49 +0000 (GMT) (envelope-from kamal_ckk@yahoo.com) Received: (qmail 28109 invoked by uid 60001); 30 Sep 2005 04:17:48 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=We+Tq6YU9gzRXi9e8GsZlgizE6V9IlmMeTCfvmjNKvHWryC0F5ZgwnjZqWcixng53qzB8ROjSYedAGRORjrcNlqEyZ/v646cTjt/PdMPzWIAvocfelYD68lb35JhA9iPR2fTOEAAsv83wGSeOX3/r3Mi7FqacO4wPEfJedhjHk8= ; Message-ID: <20050930041748.28107.qmail@web35706.mail.mud.yahoo.com> Received: from [202.79.62.15] by web35706.mail.mud.yahoo.com via HTTP; Thu, 29 Sep 2005 21:17:48 PDT Date: Thu, 29 Sep 2005 21:17:48 -0700 (PDT) From: kamal kc To: det_re In-Reply-To: <20050930035306.20197.qmail@web60118.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-net@freebsd.org Subject: Re: tcpdump based packet generator X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2005 04:17:49 -0000 --- det_re wrote: > has anyone seen or implemented packet generator > capable of reading tcpdump trace file and resend the > packets back into the wire through bpf in freebsd > box? if you are talking about capturing packets by writing a program then you could use libpcap.a that provides an abstraction for the underlying bpf. man pcap would be a good help. sending custom packets can be done using raw sockets (SOCK_RAW). you can use IP_HDRINCL for including your custom ip header > > > > > > __________________________________ > Yahoo! Mail - PC Magazine Editors' Choice 2005 > http://mail.yahoo.com > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to > "freebsd-net-unsubscribe@freebsd.org" > __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com