From owner-freebsd-current@freebsd.org Mon Feb 22 23:55:15 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 17C63AAF21D for ; Mon, 22 Feb 2016 23:55:15 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CD7CD1AC4 for ; Mon, 22 Feb 2016 23:55:14 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1aY0Ji-000MU3-Dq; Tue, 23 Feb 2016 02:55:02 +0300 Date: Tue, 23 Feb 2016 02:55:02 +0300 From: Slawa Olhovchenkov To: Luigi Rizzo Cc: freebsd-current Subject: Re: three new netmap tools: pcap player, link emulator, load distributor Message-ID: <20160222235502.GT68298@zxy.spb.ru> References: <20160222121415.GG37895@zxy.spb.ru> <20160222181603.GR68298@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Feb 2016 23:55:15 -0000 On Mon, Feb 22, 2016 at 02:40:15PM -0800, Luigi Rizzo wrote: > On Mon, Feb 22, 2016 at 10:16 AM, Slawa Olhovchenkov wrote: > > On Mon, Feb 22, 2016 at 08:17:06AM -0800, Luigi Rizzo wrote: > > > > >> Give this a try and let us know. > > > > I can't compile this. > > > > # cc -o lb lb.c > > lb.c:17:10: fatal error: 'ctrs.h' file not found > > #include "ctrs.h" > > ^ > > 1 error generated. > > > > ok, give ctrs.h from netmap/examples/ > > > > # cc -o lb lb.c > > In file included from lb.c:18: > > ./lb.h:2:23: error: use of undeclared identifier 'ETH_ALEN' > > unsigned char h_dest[ETH_ALEN]; > > ^ > > ./lb.h:3:25: error: use of undeclared identifier 'ETH_ALEN' > > unsigned char h_source[ETH_ALEN]; > > ^ > > 2 errors generated. > > please try now. compiled, ok. and i need wrote some apps for forwarding from pipes to output interface? PS: sorry for mislead, 6.5Mpps for me for next flow: physical => rehasher_rhasher => output v ^ dummy workers i.e. 6.5Mpss input traffic, rehasher passthrough every packet twice.