From owner-freebsd-net@FreeBSD.ORG Sat Sep 11 00:32:14 2004 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 0D0DB16A4CE for ; Sat, 11 Sep 2004 00:32:14 +0000 (GMT) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3728F43D45 for ; Sat, 11 Sep 2004 00:32:13 +0000 (GMT) (envelope-from andre@freebsd.org) Received: (qmail 66301 invoked from network); 10 Sep 2004 23:28:16 -0000 Received: from unknown (HELO freebsd.org) ([62.48.0.53]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 10 Sep 2004 23:28:16 -0000 Message-ID: <4142397E.A167AE94@freebsd.org> Date: Sat, 11 Sep 2004 01:32:14 +0200 From: Andre Oppermann X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Andrew Gallatin References: <16706.13257.676586.513738@grasshopper.cs.duke.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org Subject: Re: packet generator 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: Sat, 11 Sep 2004 00:32:14 -0000 Andrew Gallatin wrote: > > Does anybody have a free, in-kernel tool to generate packets quicky > and send them out a particular etherent interface on FreeBSD? > Something similar to pktgen on linux? > > I'm trying to excersize just the send-side of programmable firmware > based NIC. The recieve side of the NIC firmware is not yet written, > but I want to get started tuning and shaking the bugs out of the send > side while the firmware author does the recieve path. The packets > just get dropped on the floor by the NIC, so its a good way to test > the interface.. > > I can add an arp entry and ping -l HUGEVAL, but that only generates 205K > pkts/sec (where *think* I see 1.1 million pkts/sec with pktgen on > linux, but I'm not sure I trust it). netgraph/ng_source.c Doesn't have a man page though. -- Andre