Fixes ndpi protocol id issues

This commit is contained in:
Matteo Biscosi 2023-07-14 12:07:13 +00:00
parent af95cd7ff0
commit 30fc1d7976
4 changed files with 6 additions and 6 deletions

View file

@ -794,8 +794,8 @@ function driver:listSeries(schema, tags_filter, wildcard_tags, start_time, not_p
toadd = true
end
elseif ((wildcard_tag ~= "protocol") or
((L4_PROTO_KEYS[value] == nil) and (interface.getnDPIProtoId(value) ~= -1))) and
((wildcard_tag ~= "category") or (interface.getnDPICategoryId(value) ~= -1)) then
((L4_PROTO_KEYS[value] == nil) and (interface.getnDPIProtoId(value) ~= -1) and interface.getnDPIProtoId(value) ~= 0))
and ((wildcard_tag ~= "category") or (interface.getnDPICategoryId(value) ~= -1)) then
toadd = true
end
@ -1106,7 +1106,6 @@ end
function driver:queryTotal(schema, tstart, tend, tags, options)
local rrdfile = driver.schema_get_full_path(schema, tags)
if not rrdfile or not ntop.notEmptyFile(rrdfile) then
return nil
end