Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Sep 2004 23:18:13 -0400
From:      "Don Bowman" <don@sandvine.com>
To:        "Andrew Gallatin" <gallatin@cs.duke.edu>, <freebsd-net@freebsd.org>
Subject:   RE: packet generator
Message-ID:  <A8535F8D62F3644997E91F4F66E341FC150AE4@exchange.sandvine.com>

next in thread | raw e-mail | index | archive | help
From: owner-freebsd-net@freebsd.org
> [mailto:owner-freebsd-net@freebsd.org]On Behalf Of Andrew Gallatin
> Sent: September 10, 2004 19:08 PM
> To: freebsd-net@freebsd.org
> Subject: packet generator
>=20
> 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?
>=20
> 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..
>=20

ng_source was a netgraph module we wrote and contributed.
It can transmit ~800Kpps on a PCI-X system. The code is in
src/sys/netgraph/ng_source.c.
I drive it with a tcl library that can create arbitrary
packets with an object-oriented model, let me know if you'd
like to try that.

--don



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A8535F8D62F3644997E91F4F66E341FC150AE4>