Reworked live packet capture for both hosts and interfaces

This commit is contained in:
Luca 2018-07-24 11:57:31 +02:00
parent 31e86bdcd3
commit f16a39ef04
10 changed files with 170 additions and 256 deletions

View file

@ -592,7 +592,11 @@ end
end
if(host["json"] ~= nil) then
print("<tr><th>"..i18n("download").."&nbsp;<i class=\"fa fa-download fa-lg\"></i></th><td colspan=2><A HREF='"..ntop.getHttpPrefix().."/lua/host_get_json.lua?ifid="..ifId.."&"..hostinfo2url(host_info).."'>JSON<A>&nbsp;/&nbsp;<A HREF='"..ntop.getHttpPrefix().."/lua/live_traffic.lua?ifid="..ifId.."&"..hostinfo2url(host_info).."'>pcap<A></td></tr>\n")
print("<tr><th>"..i18n("download").."&nbsp;<i class=\"fa fa-download fa-lg\"></i></th><td colspan=2><A HREF='"..ntop.getHttpPrefix().."/lua/host_get_json.lua?ifid="..ifId.."&"..hostinfo2url(host_info).."'>JSON<A>&nbsp;")
if(isAdministrator()) then
print("/&nbsp;<A HREF='"..ntop.getHttpPrefix().."/lua/live_traffic.lua?ifid="..ifId.."&"..hostinfo2url(host_info).."'>pcap<A></td></tr>\n")
end
end
if(host["ssdp"] ~= nil) then