Implemented export of nDPI-based protocols and categories

This commit is contained in:
Luca Deri 2025-11-10 18:35:18 +01:00
parent f077d1e7c0
commit 8966df2c2f
5 changed files with 95 additions and 12 deletions

View file

@ -0,0 +1,14 @@
--
-- (C) 2013-25 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
fname = "ndpi_categories.txt"
sendHTTPContentTypeHeader('text/plain', 'attachment; filename="'..fname..'"')
interface.dumpnDPICategoryId()

View file

@ -0,0 +1,13 @@
--
-- (C) 2013-25 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
fname = "ndpi_protocols.txt"
sendHTTPContentTypeHeader('text/plain', 'attachment; filename="'..fname..'"')
interface.dumpnDPIProtocolId()