mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-26 07:19:03 +00:00
Implemented CustomFlowLuaScript.cpp engine
This commit is contained in:
parent
80db634bfe
commit
309d17b6b8
6 changed files with 209 additions and 20 deletions
7
scripts/callbacks/custom_flow_lua_script.lua
Normal file
7
scripts/callbacks/custom_flow_lua_script.lua
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
|
||||
function flow_key()
|
||||
return "[ ".. flow.protocol() .. " ]" .. flow.cli() .. ":" .. flow.cli_port() .. " <-> ".. flow.srv() .. ":" .. flow.srv_port()
|
||||
end
|
||||
|
||||
io.write(flow_key() .. " [bytes: ".. flow.bytes().."]\n")
|
||||
return(0)
|
||||
Loading…
Add table
Add a link
Reference in a new issue