Netmap software interface mirror / netmap monitor

Luigi Rizzo rizzo at iet.unipi.it
Fri Jan 8 18:46:07 UTC 2016


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


More information about the freebsd-net mailing list