mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Implements DB interoperability b/w ntopng and nProbe
This commit is contained in:
parent
e0d7ac9ade
commit
a86f3dd36e
10 changed files with 117 additions and 11 deletions
|
|
@ -176,7 +176,13 @@ else
|
|||
|
||||
flow["PROTOCOL"] = base.."&protocol=&port=&host=&l4proto="..flow["PROTOCOL"].."'>"..pname.."</A>"
|
||||
flow["L7_PROTO"] = base.."&port=&host=&l4proto=&protocol="..flow["L7_PROTO"].."'>"..getApplicationLabel(interface.getnDPIProtoName(tonumber(flow["L7_PROTO"]))).."</A>"
|
||||
flow["FLOW_URL"] = base.."&row_id="..flow["idx"].."&version="..ip_version.."'><span class='label label-info'>Info</span></A>"
|
||||
|
||||
-- nProbe/related database doesn't handle idx so we have to disable the info
|
||||
if flow["idx"] ~= "-1" then
|
||||
flow["FLOW_URL"] = base.."&row_id="..flow["idx"].."&version="..ip_version.."'><span class='label label-info'>Info</span></A>"
|
||||
else
|
||||
flow["FLOW_URL"] = "<span class='label label-default'>Info</span></A>"
|
||||
end
|
||||
|
||||
if flow["PROFILE"] ~= nil and flow["PROFILE"] ~="" then
|
||||
flow["INFO"] = "<span class='label label-primary'>"..flow["PROFILE"].."</span> "..flow["INFO"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue