Implements network alerts

This commit is contained in:
Simone Mainardi 2019-07-10 12:43:17 +02:00
parent 95a2647390
commit 11fa6b5212
11 changed files with 355 additions and 58 deletions

View file

@ -493,7 +493,8 @@ class NetworkInterface : public AlertableEntity {
u_int8_t location_filter);
int getMacsIpAddresses(lua_State *vm, int idx);
void getFlowsStats(lua_State* vm);
void getNetworksStats(lua_State* vm);
void getNetworkStats(lua_State* vm, u_int8_t network_id) const;
void getNetworksStats(lua_State* vm) const;
int getFlows(lua_State* vm,
u_int32_t *begin_slot,
bool walk_all,
@ -597,7 +598,7 @@ class NetworkInterface : public AlertableEntity {
#endif
return(-1);
};
NetworkStats* getNetworkStats(u_int8_t networkId);
NetworkStats* getNetworkStats(u_int8_t networkId) const;
void allocateNetworkStats();
void getsDPIStats(lua_State *vm);
#ifdef NTOPNG_PRO