Implements nDPI stats counters for views

This commit is contained in:
Simone Mainardi 2019-07-19 10:30:59 +02:00
parent 6e8d0caca7
commit 3cd6a92efd
7 changed files with 31 additions and 34 deletions

View file

@ -5394,6 +5394,7 @@ void NetworkInterface::lua(lua_State *vm) {
lua_push_int32_table_entry(vm, "id", id);
if(customIftype) lua_push_str_table_entry(vm, "customIftype", (char*)customIftype);
lua_push_bool_table_entry(vm, "isView", isView()); /* View interface */
lua_push_bool_table_entry(vm, "isViewed", isViewed()); /* Viewed interface */
lua_push_bool_table_entry(vm, "isDynamic", isDynamicInterface()); /* An runtime-instantiated interface */
lua_push_uint64_table_entry(vm, "seen.last", getTimeLastPktRcvd());
lua_push_bool_table_entry(vm, "inline", get_inline_interface());