mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +00:00
Implemented export of nDPI-based protocols and categories
This commit is contained in:
parent
f077d1e7c0
commit
8966df2c2f
5 changed files with 95 additions and 12 deletions
14
scripts/lua/rest/v2/get/ndpi/export/categories.lua
Normal file
14
scripts/lua/rest/v2/get/ndpi/export/categories.lua
Normal 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()
|
||||
|
||||
13
scripts/lua/rest/v2/get/ndpi/export/protocols.lua
Normal file
13
scripts/lua/rest/v2/get/ndpi/export/protocols.lua
Normal 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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue