Updated eBPF support

This commit is contained in:
Luca Deri 2018-12-10 22:31:44 +01:00
parent fd2b5c385b
commit ac9f7e3c7a
5 changed files with 59 additions and 77 deletions

View file

@ -1524,13 +1524,16 @@ function flowinfo2process(process, host_info_to_url)
-- TODO: add links back once restored
if not isEmptyString(process["name"]) then
local clean_name = process["name"]:gsub("'",'')
local full_clean_name = process["name"]:gsub("'",'')
local t = split(full_clean_name, "/")
clean_name = t[#t]
-- proc_name = string.format("<i class='fa fa-terminal'></i> %s", clean_name)
proc_name = string.format("<A HREF='%s/lua/process_details.lua?%s&pid_name=%s&pid=%u'><i class='fa fa-terminal'></i> %s</A>",
ntop.getHttpPrefix(),
host_info_to_url,
clean_name,
full_clean_name,
process["pid"],
clean_name)
end