Various optimizations for malware flow categorization (-c)

This commit is contained in:
Luca 2015-05-28 19:04:03 +02:00
parent 71389f81d3
commit dc746b45b3
8 changed files with 30 additions and 34 deletions

View file

@ -525,7 +525,7 @@ for _key, _value in pairsByKeys(vals, funct) do
print ("\", \"column_info\" : \"".. value["info"])
if(prefs.is_categorization_enabled) then
if(prefs.is_categorization_enabled and (value["info"] ~= "")) then
flow = interface.findFlowByKey(tonumber(key))
if(flow ~= nil) then value["category"] = flow["category"] end
if(value["category"] ~= "") then