Commit graph

8 commits

Author SHA1 Message Date
Simone Mainardi
fe5c6377aa Adds numFlows to flows retrieval for proper pagination
numFlows was suppressed in an earlier commit but this caused
issues with pagination of results.
2016-08-25 18:30:27 +02:00
Luca Deri
a3d36634e3 Code cleanup 2016-08-10 15:53:39 +02:00
Luca
2fb0e863fe Fixed inter-arrival time in flows
Updated (C)
2016-04-19 11:06:39 +02:00
Luca
12aad4e7a7 Removed old API call
Tiny changes to XSS check code
2015-12-27 19:09:14 +01:00
Arianna Avanzini
86ab3f0585 src/Lua.cpp: finally add minimal SQL interface for Lua
This commit adds a Lua interface that allows Lua scripts to directly
query flows with a simple SQL-like statement. This also enforces the
checks and data conversions in the iface_ports_list.lua script.
2015-06-19 16:48:09 +02:00
Arianna Avanzini
f514a4db87 src/FlowsManager.cpp: add infrastructure for filtering flow queries
This commit adds a first option to filter results of queries
on flows so that only relevant info can be returned. This for
now only introduces a PORTS filter. This helps reducing the
load on the Lua stack when the flows limit is high.
2015-06-16 13:16:07 +02:00
Arianna Avanzini
0b815a6ed2 iface_ports_list.lua: get flows info only per-host when possible
This commit lets the iface_ports_list.lua invoke getFlowsInfo()
with the host filter when the host parameter is not nil, so that
the Lua stack is not overloaded when possible.
2015-06-09 09:15:19 +02:00
Luca
730d76b9f5 Initial import from SVN 2015-04-30 12:22:35 +02:00