Date: Mon, 26 Mar 2007 13:10:00 +0400 From: Gleb Smirnoff <glebius@FreeBSD.org> To: Yar Tikhiy <yar@FreeBSD.org> Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/net if_edsc.c Message-ID: <20070326091000.GN2713@FreeBSD.org> In-Reply-To: <200703260450.l2Q4o6vs047638@repoman.freebsd.org> References: <200703260450.l2Q4o6vs047638@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 26, 2007 at 04:50:06AM +0000, Yar Tikhiy wrote: Y> yar 2007-03-26 04:50:06 UTC Y> Y> FreeBSD src repository Y> Y> Added files: Y> sys/net if_edsc.c Y> Log: Y> Introduce a new toy interface, edsc(4). It's a discard interface Y> imitating an Ethernet device, so vlan(4) and if_bridge(4) can be Y> attached to it for testing and benchmarking purposes. Its source Y> can be an introduction to the anatomy of a network interface driver Y> due to its simplicity as well as to a bunch of comments in it. Y> Y> (The rest of needed changes were in my previous commit, which got Y> interrupted in the middle. Alas, CVS commits are not atomic.) I am surprised that you didn't use ng_eiface(4) for the same purpose. If you attach ng_hole(4) to the ng_eiface, then you'll get the same functionality as edsc(4). But if you attach with ngctl(8) to the interface via ng_socket(4) you will get a hex dump of the frames sent to the interface. AFAIK, the edsc(4)'s functionality is already present in the system. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070326091000.GN2713>