Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jan 2016 22:24:31 +0300
From:      Pavel Odintsov <pavel.odintsov@gmail.com>
To:        Luigi Rizzo <rizzo@iet.unipi.it>
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:  <CALgsdbfnOqBV6GKuGYE46F7XtsBuag_Skq49VDsUB=DKL%2BBxxA@mail.gmail.com>
In-Reply-To: <CA%2BhQ2%2BiwJu7GwGmZh9fvCEouSytKs9%2BVm6KK=Z_b4Qx%2B9f5hfw@mail.gmail.com>
References:  <CALgsdbd7oQ8=xBHzmnA23Vq5N_LVxTrSePcrgG0JZjz8SxjdLA@mail.gmail.com> <CA%2BhQ2%2BiwJu7GwGmZh9fvCEouSytKs9%2BVm6KK=Z_b4Qx%2B9f5hfw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
That's awesome! Thanks for lightning fast answer! Will check soon!

On Fri, Jan 8, 2016 at 9:46 PM, Luigi Rizzo <rizzo@iet.unipi.it> wrote:
> 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



-- 
Sincerely yours, Pavel Odintsov



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALgsdbfnOqBV6GKuGYE46F7XtsBuag_Skq49VDsUB=DKL%2BBxxA>