mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 09:20:10 +00:00
Migrate interface alerts to in-memory alerts
This commit is contained in:
parent
346627eb74
commit
d85fc2b06b
5 changed files with 78 additions and 31 deletions
|
|
@ -62,7 +62,7 @@ typedef struct {
|
|||
* @ingroup NetworkInterface
|
||||
*
|
||||
*/
|
||||
class NetworkInterface {
|
||||
class NetworkInterface : public Checkpointable {
|
||||
protected:
|
||||
char *ifname, *ifDescription;
|
||||
const char *customIftype;
|
||||
|
|
@ -288,8 +288,11 @@ class NetworkInterface {
|
|||
inline void incLostPkts(u_int32_t num) { tcpPacketStats.incLost(num); };
|
||||
bool checkPointHostCounters(lua_State* vm, u_int8_t checkpoint_id, char *host_ip, u_int16_t vlan_id);
|
||||
bool checkPointNetworkCounters(lua_State* vm, u_int8_t checkpoint_id, u_int8_t network_id);
|
||||
inline bool checkPointInterfaceCounters(lua_State* vm, u_int8_t checkpoint_id) { checkpoint(vm, checkpoint_id); return true; }
|
||||
void checkPointCounters(bool drops_only);
|
||||
|
||||
virtual char* serializeCheckpoint();
|
||||
|
||||
virtual u_int64_t getCheckPointNumPackets();
|
||||
virtual u_int64_t getCheckPointNumBytes();
|
||||
virtual u_int32_t getCheckPointNumPacketDrops();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue