Netmap vale + bridge on -STABLE

Eduardo Meyer dudu.meyer at gmail.com
Fri Nov 27 17:50:44 UTC 2015


Hello,

I am trying to achieve a netmap based bridge which will allow me to capture
packets from it, say, I want to bridge ix0 + ix1 and be able to tcpdump it
(in fact I want to run other applications which are netmap aware).

Should it work on -STABLE? Because as far as I remember I could make it
work in the past, and some other people[1] had some success doing it too
(at least the vale + wire bridge part)

What I get is an error while opening ix0 connected to vale:

# ./vale-ctl
257.967371 bdg_ctl [148] bridge:0 port:0 vale0:fnm0
257.967399 bdg_ctl [148] bridge:0 port:1 vale0:ids0
257.967407 bdg_ctl [148] bridge:0 port:2 vale0:ix0
257.967414 bdg_ctl [148] bridge:1 port:0 vale1:fnm1
257.967419 bdg_ctl [148] bridge:1 port:1 vale1:ids1
257.967428 bdg_ctl [148] bridge:1 port:2 vale1:ix1

# ./bridge -i netmap:ix0 -i netmap:ix1
./bridge built Nov 26 2015 19:18:34
268.504787 nm_open [839] NIOCREGIF failed: Device busy ix0
268.504800 main [233] cannot open netmap:ix0
Exit 1

How can I achieve it? Is it ok to expect to have another netmap capable
software (say like suricata) to use this other vale connected port? Or will
both software (bridge and suricata) concurrently copy and remove packets
from netmap rings and therefore mess up the whole thing?

[1]
https://lists.openinfosecfoundation.org/pipermail/oisf-users/2015-October/005310.html


-- 
===========
Eduardo Meyer
pessoal: dudu.meyer at gmail.com
profissional: ddm.farmaciap at saude.gov.br


More information about the freebsd-stable mailing list