From owner-freebsd-net@FreeBSD.ORG Wed Dec 24 15:43:53 2008 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84C2A106564A for ; Wed, 24 Dec 2008 15:43:53 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from proxy.meer.net (proxy.meer.net [64.13.141.13]) by mx1.freebsd.org (Postfix) with ESMTP id 6451D8FC1A for ; Wed, 24 Dec 2008 15:43:53 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from mail.meer.net (mail.meer.net [64.13.141.3]) by proxy.meer.net (8.14.2/8.14.2) with ESMTP id mBOFhf4g087914; Wed, 24 Dec 2008 07:43:53 -0800 (PST) (envelope-from gnn@neville-neil.com) Received: from mail2.meer.net (mail2.meer.net [64.13.141.16]) by mail.meer.net (8.13.3/8.13.3/meer) with ESMTP id mBOFh89d070826; Wed, 24 Dec 2008 07:43:08 -0800 (PST) (envelope-from gnn@neville-neil.com) Received: from gnnbsd.hudson-trading.com.neville-neil.com (209.249.190.8.available.above.net [209.249.190.8] (may be forged)) (authenticated bits=0) by mail2.meer.net (8.14.1/8.14.1) with ESMTP id mBOFh8R1075689; Wed, 24 Dec 2008 07:43:08 -0800 (PST) (envelope-from gnn@neville-neil.com) Date: Wed, 24 Dec 2008 10:43:07 -0500 Message-ID: <7i63l9r33o.wl%gnn@neville-neil.com> From: gnn@freebsd.org To: Julian Elischer In-Reply-To: <4951515C.4030706@elischer.org> References: <7ihc4u3adr.wl%gnn@neville-neil.com> <4951515C.4030706@elischer.org> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/22.3 (amd64-portbld-freebsd7.1) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Canit-CHI2: 0.50 X-Bayes-Prob: 0.5 (Score 0, tokens from: ) X-Spam-Score: 0.10 () [Tag at 5.00] COMBINED_FROM X-CanItPRO-Stream: default X-Canit-Stats-ID: 2815540 - 3d2f5ffd460c X-Scanned-By: CanIt (www . roaringpenguin . com) on 64.13.141.13 Cc: net@freebsd.org Subject: Re: A new tool for low level testing... 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: Wed, 24 Dec 2008 15:43:53 -0000 At Tue, 23 Dec 2008 13:00:12 -0800, julian wrote: > > gnn@freebsd.org wrote: > > Hi, > > > > I just checked in a small tool to HEAD in > > /usr/src/tools/tools/ether_reflect which uses pcap and bpf to reflect > > ethernet packets just about the driver layer without involving the > > protocol stacks. This is useful for people doing low level testing of > > drivers and switches. If you happen to be lucky enough to have an > > ethernet packet generator (ixia et al) this will do what you want in > > terms of reflecting the packets back. > > > > Later, > > George > > _______________________________________________ > > 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" > > > OR > > ngctl mkpeer em0: echo lower echo > > > hmmmmm no this would leave the source and destination headers in hte > same order.. they need to be swapped.. > > ok so I need to make a patch, but it would be much quicker than a user > utility.. I agree that netgraph is the right long term answer. I look forward to what you come up with. Also, +1 to an improved set of docs on netgraph. Later, George