From owner-freebsd-net@FreeBSD.ORG Wed Feb 19 22:48:50 2014 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 93D0889A for ; Wed, 19 Feb 2014 22:48:50 +0000 (UTC) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id 51A4D1C97 for ; Wed, 19 Feb 2014 22:48:50 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id E888A7300B; Wed, 19 Feb 2014 23:50:56 +0100 (CET) Date: Wed, 19 Feb 2014 23:50:56 +0100 From: Luigi Rizzo To: Olivier Cochard-Labb? Subject: Re: netmap, VALE and netmap pipes Message-ID: <20140219225056.GC78996@onelab2.iet.unipi.it> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 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, 19 Feb 2014 22:48:50 -0000 On Wed, Feb 19, 2014 at 10:14:18PM +0100, Olivier Cochard-Labb? wrote: > On Mon, Feb 17, 2014 at 11:11 AM, Luigi Rizzo wrote: > > > > > > > https://code.google.com/p/netmap-ipfw > > a netmap-enabled, userspace version of the ipfw firewall and > > dummynet network emulator. This version reaches 7-10 Mpps for > > filtering and over 2.5 Mpps for emulation. > > > > > > Hope you'll find it useful. > > > > Hi, > > I didn't reach to compile netmap-ipfw under FreeBSD (10-stable r261209 and > 11.0-CURRENT r262140): > > fetch > http://netmap.googlecode.com/archive/7f66866e7b735497cc0f0b81cfca94e32e81a182.zip > fetch > http://netmap-ipfw.googlecode.com/archive/1430cbad0d128aebb80bbd54be970afb8fbe1c74.zip > unzip 7f66866e7b735497cc0f0b81cfca94e32e81a182.zip > unzip 1430cbad0d128aebb80bbd54be970afb8fbe1c74.zip > cd netmap-ipfw-1430cbad0d12/ > gmake NETMAP_INC=../netmap-7f66866e7b73/sys > > Building userspace ... > gmake[1]: Entering directory `/root/netmap-ipfw-1430cbad0d12/ipfw' > (cd ../objs; gmake -f ../Makefile.kipfw include_e) > gmake[2]: Entering directory `/root/netmap-ipfw-1430cbad0d12/objs' > Building /root/netmap-ipfw-1430cbad0d12/objs/../objs/include_e ... > gmake[2]: Leaving directory `/root/netmap-ipfw-1430cbad0d12/objs' > CC ipfw2.c > CC dummynet.c > CC main.c > CC ipv6.c > CC altq.c > CC ../extra/glue.c > ../extra/glue.c:181:36: error: comparison of unsigned expression < 0 is > always false [-Werror,-Wtautological-compare] > if((oldlenp != NULL) && (*oldlenp < 0)) oh, clang... just remove the check for the time being, i will fix it upstream in the meantime thanks luigi