Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jul 2014 11:05:26 -0700
From:      Adrian Chadd <adrian@freebsd.org>
To:        Daniel Corbe <corbe@corbe.net>
Cc:        FreeBSD Net <freebsd-net@freebsd.org>
Subject:   Re: netmap, selective processing.
Message-ID:  <CAJ-Vmo=nkPC2B9cRHRLdr0NQEcnFEhjVqV2u2JLR17S=AVNcZQ@mail.gmail.com>
In-Reply-To: <ygfzjg9tcs5.fsf@corbe.net>
References:  <ygfzjg9tcs5.fsf@corbe.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <corbe@corbe.net> 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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmo=nkPC2B9cRHRLdr0NQEcnFEhjVqV2u2JLR17S=AVNcZQ>