From owner-freebsd-net@FreeBSD.ORG Wed May 7 12:35:39 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4A07E221 for ; Wed, 7 May 2014 12:35:39 +0000 (UTC) Received: from mail-qc0-x234.google.com (mail-qc0-x234.google.com [IPv6:2607:f8b0:400d:c01::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 07C3D1B9 for ; Wed, 7 May 2014 12:35:38 +0000 (UTC) Received: by mail-qc0-f180.google.com with SMTP id i17so985620qcy.11 for ; Wed, 07 May 2014 05:35:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Tmv74I20bh0GXu5VgnW7onAlY0Hj/7p4mbDaOUvolEQ=; b=kwUL217EV8rnCEWhaVQgRCwidXeZHGfVgn32oX9WMXZK/uy2p8XjhJ9RGxrZAfDyO1 p69Mr1kbS2m54SRqX3qO+ynwadSphawtrnleCV7oSE7AOFSwKwt2/KUREPU9ntK6Fazx VGJ7OPkKs7usILamIo+O/JtuKuBSRo2/sj9TLeuPpjemxhfuqeatb7qMdvBB2Qy/c+hI oHfLLkoNIZLF6Bz50iYHPYVyIBzIGaZ9uMLnwf9PcAZ3nkFHK4X+1rH4RLyLEBvi3u0+ wNc2+3PGZ36tAsjrYGubFlNhxFpBENXo71hmwfGR6cLT1tuUiP9NX4nmRKCnnZ3kDVB+ kq7Q== MIME-Version: 1.0 X-Received: by 10.140.91.161 with SMTP id z30mr59532647qgd.65.1399466138181; Wed, 07 May 2014 05:35:38 -0700 (PDT) Received: by 10.229.232.74 with HTTP; Wed, 7 May 2014 05:35:38 -0700 (PDT) In-Reply-To: References: Date: Wed, 7 May 2014 17:05:38 +0430 Message-ID: Subject: Re: running netmap-ipfw with real NICs From: Mahnaz Talebi To: "freebsd-net@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18 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, 07 May 2014 12:35:39 -0000 Sorry for my inaccuracy! I use "./pkt-gen -i eth0 -f tx" in sender and " ./pkt-gen -i eth0 -f rx" in receiver. On Wed, May 7, 2014 at 5:00 PM, Mahnaz Talebi wrote= : > I use this scenario for test netmap-based ipfw with real NICs. > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > sender (eth0:10.10.1.1) DUT (eth0:10.10.1.2) > (eth1:10.10.2.2) receiver(10.10.2.3:eth0) > ./pkt-gen -i eth0 -f rx -------------> ./kipfw netmap:eth0 > netmap:eth1 --------------> ./pkt-gen -i eth0 -f tx > where sender and receiver connect to DUT directly. > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > I think that kipfw capture packets from DUT's eth0 (which come from > sender's eth0) and forward them to it's eth1 (which connect directly to > receiver's eth0), after apply policies from ipfw/ipfw. > I expect that see packets that pass the ipfw's policies in receiver. > > Is this scenario and my expects true?! > > > > > > > > On Mon, Apr 28, 2014 at 7:28 PM, Luigi Rizzo wrote: > >> >> >> >> On Mon, Apr 28, 2014 at 4:30 PM, Raimundo Santos wrot= e: >> >>> On 28 April 2014 01:58, Mahnaz Talebi wrote: >>> >>> > I am trying to run netmap-based ipfw with real NICs >>> >>> >>> Hello, >>> >>> there are some drivers that does not support netmap yet. >>> >> >> =E2=80=8Bthanks for the answer but it wasn't that, i spoke to Mahnaz >> and he was just running out of memory, as dmesg showed. >> >> cheers >> luigi >> =E2=80=8B >> >>> >>> >> -- >> -----------------------------------------+------------------------------= - >> Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione >> http://www.iet.unipi.it/~luigi/ . Universita` di Pisa >> TEL +39-050-2211611 . via Diotisalvi 2 >> Mobile +39-338-6809875 . 56122 PISA (Italy) >> -----------------------------------------+------------------------------= - >> > >