From owner-freebsd-net@FreeBSD.ORG Wed May 7 12:30:34 2014 Return-Path: Delivered-To: freebsd-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 4A0EE11A for ; Wed, 7 May 2014 12:30:34 +0000 (UTC) Received: from mail-qa0-x231.google.com (mail-qa0-x231.google.com [IPv6:2607:f8b0:400d:c00::231]) (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 08C15111 for ; Wed, 7 May 2014 12:30:33 +0000 (UTC) Received: by mail-qa0-f49.google.com with SMTP id cm18so895630qab.36 for ; Wed, 07 May 2014 05:30:33 -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=z+4NdTL8eaCgXc894fOM0rOWsPi/42JKgLh7eJAKfHU=; b=Q3YT+dnciTFv+VIc1FjAnoJUJ6qibeasyBkvKOHNDJrx1SgtIadiZ4Moiq26D6axan nH5/+QQZS4os+2EwxkdiFvf7xi/9+iKgGP34/4Cx+dS+4vtFWmBpdEEYr8m/+7FeEHGQ B4pzbwh0Fc2WAg7PSwJAxrkPj9XETZl0Mdmr3k6beJn3NgPB9FLbeT2jtqhmDDeqcr34 fYdVoCPQ3ezXl8uUiRmlLOu+GDAJBCkT0zQE1UXPzW0StRWYAKVJ0QDMgdzJeqH8us0U 3GO2FPWaL2A6leKX55Em4KXzshRmrDbi3egUw6lA62q5fFC8xoUUEW5Lxaq5b+4Ea4sR hXIw== MIME-Version: 1.0 X-Received: by 10.140.29.34 with SMTP id a31mr58595684qga.95.1399465832817; Wed, 07 May 2014 05:30:32 -0700 (PDT) Received: by 10.229.232.74 with HTTP; Wed, 7 May 2014 05:30:32 -0700 (PDT) In-Reply-To: References: Date: Wed, 7 May 2014 17:00:32 +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:30:34 -0000 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 wrote= : > >> 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) > -----------------------------------------+------------------------------- >