From owner-freebsd-net@FreeBSD.ORG Wed Jul 16 18:05:27 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 CB56CF84 for ; Wed, 16 Jul 2014 18:05:27 +0000 (UTC) Received: from mail-qg0-x22e.google.com (mail-qg0-x22e.google.com [IPv6:2607:f8b0:400d:c04::22e]) (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 8E4B522A2 for ; Wed, 16 Jul 2014 18:05:27 +0000 (UTC) Received: by mail-qg0-f46.google.com with SMTP id z60so1070690qgd.33 for ; Wed, 16 Jul 2014 11:05:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=EAHIacivCQLv74YBqw3plWO/KM89lYqGA7DS54VT1Q0=; b=cZLadjOeg+3hhdyC2sen2LSsdNO1r2qhJNkRXJuWzzjJybDfZIeNNfXm2a6ld6NL1J fhIpCVyXJjji+czDVOanvQx4Hdj2m/krljG+W8nHTMy3OM0wzDokLDSxKL4JDHrS39dx iUTaOacvC2PzxR89tiDDznVdv+B+dlXfvNWxU9z4cDdOKXTtKJ4cwQD4QoXgct0xTOJ0 /d5JsHdya75C1bK7uOwWDjC76dRa0DbczrjUASZ1frHzGCMvCUEemJSB4X26bCkDCUVc 3i2LvkESYhBedhiUCqeFgdGKh/sqQtfuIr+KYEQP9KZk0erWfk28iz6oGYwyD4xBeMqh 4ngg== MIME-Version: 1.0 X-Received: by 10.224.171.197 with SMTP id i5mr48754892qaz.55.1405533926666; Wed, 16 Jul 2014 11:05:26 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.202.193 with HTTP; Wed, 16 Jul 2014 11:05:26 -0700 (PDT) In-Reply-To: References: Date: Wed, 16 Jul 2014 11:05:26 -0700 X-Google-Sender-Auth: Bt3KSUkdsz-P9Fp76bQROambb0s Message-ID: Subject: Re: netmap, selective processing. From: Adrian Chadd To: Daniel Corbe Content-Type: text/plain; charset=UTF-8 Cc: FreeBSD Net 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, 16 Jul 2014 18:05:27 -0000 Hi, Yes. You can write some matching code to match on what you care about and reinject the rest back to the netmap "host interface" that you can create. There's a way to grab both say, em0 for netmap and the host side of em0 so you can reinject packets back up to the host stack and get them from the host stack to process. Luigi would know the details. I just stumbled across it when pecking around. :) -a On 16 July 2014 10:48, Daniel Corbe wrote: > > I hope this it the right place to ask questions about netmap. I'm > toying with the idea of writing a netmap-based OSPF implementation > because bird's OSPF implementation isn't as good as its BGP > implementation, quagga doesn't scale well and openospfd doesn't compile > on 10-RELEASE or CURRENT. > > But I'm only interested in selectively processing packets on the > netmap-enabled interface. Is there a way to do this? Or alternatively > if I throw the IF into netmap mode, can I process what I'm interested in > processing and then somehow throw the rest of the traffic back up to the > host's IP stack? > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"