-- -- (C) 2013-17 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" sendHTTPContentTypeHeader('text/html') if (group_col == nil) then group_col = "mac" end ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc") active_page = "devices_stats" dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua") local base_url = ntop.getHttpPrefix() .. "/lua/mac_stats.lua" local page_params = {} local host_macs_only = false local host_macs_only_filter = "" if(not isEmptyString(_GET["host_macs_only"])) then if(_GET["host_macs_only"]) == "true" then host_macs_only = true else host_macs_only = false end page_params["host_macs_only"] = _GET["host_macs_only"] host_macs_only_filter = '' end local manufacturer = nil local manufacturer_filter = "" if(not isEmptyString(_GET["manufacturer"])) then manufacturer = _GET["manufacturer"] page_params["manufacturer"] = manufacturer manufacturer_filter = '' end print [[