mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
listing fpga interfaces for traffic recording with zmq support
This commit is contained in:
parent
7f92944def
commit
6257d6d002
2 changed files with 10 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue