listing fpga interfaces for traffic recording with zmq support

This commit is contained in:
cardigliano 2018-11-08 17:13:43 +01:00
parent 7f92944def
commit 6257d6d002
2 changed files with 10 additions and 4 deletions

View file

@ -172,10 +172,16 @@ function recording_utils.getExtInterfaces(ifid)
for ifname,_ in pairs(all_interfaces) do
if ntopng_interfaces[ifname] == nil and -- not in use as packet interface by ntopng
inuse_ext_interfaces[ifname] == nil and -- not in use by other zmq interfaces
recording_utils.isZC(ifname) then -- is ZC
all_interfaces[ifname].module ~= nil and -- detected by pf_ring
all_interfaces[ifname].module ~= "pf_ring" -- ('pf_ring-zc', 'napatech', ..)
then
local prefix = ""
if all_interfaces[ifname].module == "pf_ring-zc" then
prefix = "zc:"
end
ext_interfaces[ifname] = {
ifdesc = 'zc:'..ifname,
is_zc = is_zc
ifdesc = prefix..ifname,
module = all_interfaces[ifname].module
}
end
end