Date: Fri, 8 Jan 2016 10:46:03 -0800 From: Luigi Rizzo <rizzo@iet.unipi.it> To: Pavel Odintsov <pavel.odintsov@gmail.com> Cc: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>, Giuseppe Lettieri <g.lettieri@iet.unipi.it> Subject: Re: Netmap software interface mirror / netmap monitor Message-ID: <CA%2BhQ2%2BiwJu7GwGmZh9fvCEouSytKs9%2BVm6KK=Z_b4Qx%2B9f5hfw@mail.gmail.com> In-Reply-To: <CALgsdbd7oQ8=xBHzmnA23Vq5N_LVxTrSePcrgG0JZjz8SxjdLA@mail.gmail.com> References: <CALgsdbd7oQ8=xBHzmnA23Vq5N_LVxTrSePcrgG0JZjz8SxjdLA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jan 8, 2016 at 10:35 AM, Pavel Odintsov <pavel.odintsov@gmail.com> wrote: > Hello, Dear Community! > > I'm working with netmap and my application uses netmap for traffic > capture. It's works really well. > > But I need some way to feed same data from physical interface to two > or more applications. > > I have found this code > https://github.com/luigirizzo/netmap/blob/master/sys/dev/netmap/netmap_monitor.c > but could not find any docs about it. > > Could you help me with examples and use cases? look at netmap_user.h, where it explains how to open a port in monitor mode. Essentially, once you have an active netmap port say netmap:ix0, you can sniff the traffic opening additional netmap ports named netmap:ix0/r (for rx traffic) or netmap:ix0/t (for tx) or even netmap:ix0/rt (for both tx and rx) Giuseppe (in Cc) can give more details cheers luigi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BhQ2%2BiwJu7GwGmZh9fvCEouSytKs9%2BVm6KK=Z_b4Qx%2B9f5hfw>