mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Added mapping in flow extraction for L4 and L7 protocols
This commit is contained in:
parent
a80b3dfe02
commit
f5069c3836
1 changed files with 7 additions and 2 deletions
|
|
@ -63,7 +63,7 @@ if(format == "txt") then
|
|||
|
||||
print("# ")
|
||||
for k,v in pairs(flow) do
|
||||
if(elems > 0) then print(" | ") end
|
||||
if(elems > 0) then print("|") end
|
||||
print(k)
|
||||
elems = elems + 1
|
||||
end
|
||||
|
|
@ -74,7 +74,12 @@ if(format == "txt") then
|
|||
local elems = 0
|
||||
for k,v in pairs(flow) do
|
||||
if(elems > 0) then print("|") end
|
||||
print(v)
|
||||
|
||||
if(k == "PROTOCOL") then print(l4ProtoToName(v))
|
||||
elseif(k == "L7_PROTO") then print(interface.getnDPIProtoName(tonumber(v)))
|
||||
else
|
||||
print(v)
|
||||
end
|
||||
elems = elems + 1
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue