Commit graph

320 commits

Author SHA1 Message Date
Luca Deri
b57aeed5a2 Lua fix 2018-07-18 22:13:53 +02:00
emanuele-f
05a576fe5c Fix custom categories matching
Note: custom_categories_to_purge will not be deallocated during shutdown
2018-07-17 19:54:39 +02:00
Luca Deri
0c99222903 Fixed lua platform dependent execution 2018-07-17 12:48:12 +02:00
Luca Deri
8eb25b54b5 Lua cleanup 2018-07-17 11:50:05 +02:00
Simone Mainardi
77c0f349d1 Migrates geolocation to GeoLite2 and libmaxminddb
Migrates class Geolocation to the new libmaxminddb

Handles static/dynamic compilation of libmaxminddb

Adds missing configure/make files for libmaxminddb

Adds libmaxminddb to travis.yml

Adds dev libmaxminddb to .travis.yml

Removes t Makefile

Removes missing ubuntu14 libmaxminddb-dev

Run autoreconf on libmaxminddb

Adds autoreconf to libmaxminddb static build

Adds libmaxminddb dependency to packages

Adds new *.mmdb files to debian/ubuntu ntopng-data

Adds new *.mmdb files to centos6/7 ntopng-data

Removes old libgeoip dep in favor of libmaxminddb

Adds back old .dat to debian/ubuntu ntopng-data

Adds back old .dat to centos ntopng-data

Adds autoreconf for travis

Removes libmaxminddb autoreconf from travis

Removes third-party libmaxminddb

Removes static build of libmaxminddb

Removes old libgeoip1 dependencies

Updates readme with libmaxminddb

Adds geolite attribution
2018-07-13 12:03:15 +02:00
Simone Mainardi
71ebaa39c2 Fixes allowed interfaces users access 2018-07-12 14:38:30 +02:00
Emanuele Faranda
a4730f33c1 Improve captive portal support with WISPr XML 2018-07-06 19:35:48 +02:00
Luca
bc4f709497 Integers that can be represented with 32 bits (or less) are now pushed to Lua as integer and not as numbers (that are represented as float) as this causes side effects in some functions 2018-06-27 09:04:57 -07:00
Luca Deri
5f461dfbd3 Fixed with Lua )non JIT) 2018-06-22 22:22:19 +02:00
Luca Deri
d4ad9dae90 Implemented packeet capture in background, ability to check if the capture is still in progress, and terminate it ahead of time
Example:
local fname = interface.captureToPcap(10, "tcp")

print(fname)

if(interface.isCaptureRunning()) then
   os.execute("sleep 1")
end

interface.stopRunningCapture()
2018-06-21 01:07:53 +02:00
Luca Deri
56b43f20a8 Added capabilities for dumping pcaps
On OSX Lua non-JIT is now the default
2018-06-20 09:19:43 +02:00
Luca Deri
d83ca95529 Fixed warning 2018-06-20 08:32:59 +02:00
Luca Deri
633e307d02 Added interface.captureToPcap() Lua API call 2018-06-19 17:31:37 +02:00
Luca Deri
2efadcf43f In case of application/json the received JSON is stored into _POST["payload"} rather than in _POST["JSON"]
Minor code cleanup
2018-06-16 14:47:10 +02:00
emanuele-f
06eae40681 Document ntop object Lua API 2018-06-15 15:52:05 +02:00
emanuele-f
c45fedf356 Document interface object Lua API 2018-06-15 15:52:05 +02:00
Simone Mainardi
fd42cfd0cb Implements Netfilter queue monitoring 2018-06-15 12:07:22 +02:00
Simone Mainardi
c382fd4631 Adds nEdge netfilter stats rrds 2018-06-15 00:34:26 +02:00
Alfredo Cardigliano
02587d0343 lua doc skeleton 2018-06-13 19:27:24 +02:00
Luca
29caa78eb1 Renamed Lua into LuaEngine to avoid name clashes 2018-06-13 18:17:49 +02:00
Renamed from src/Lua.cpp (Browse further)