Netmap software interface mirror / netmap monitor

Pavel Odintsov pavel.odintsov at gmail.com
Fri Jan 8 19:24:32 UTC 2016


That's awesome! Thanks for lightning fast answer! Will check soon!

On Fri, Jan 8, 2016 at 9:46 PM, Luigi Rizzo <rizzo at iet.unipi.it> wrote:
> On Fri, Jan 8, 2016 at 10:35 AM, Pavel Odintsov
> <pavel.odintsov at 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


More information about the freebsd-net mailing list