mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 01:10:10 +00:00
21 lines
541 B
C++
21 lines
541 B
C++
#ifndef _L4_STATS_H_
|
|
#define _L4_STATS_H_
|
|
|
|
class L4Stats {
|
|
private:
|
|
TrafficStats tcp_sent, tcp_rcvd;
|
|
TrafficStats udp_sent, udp_rcvd;
|
|
TrafficStats icmp_sent, icmp_rcvd;
|
|
TrafficStats other_ip_sent, other_ip_rcvd;
|
|
|
|
public:
|
|
void luaStats(lua_State* vm);
|
|
void luaAnomalies(lua_State* vm);
|
|
void serialize(json_object *obj);
|
|
void deserialize(json_object *obj);
|
|
void incStats(time_t when, u_int8_t l4_proto,
|
|
u_int64_t rcvd_packets, u_int64_t rcvd_bytes,
|
|
u_int64_t sent_packets, u_int64_t sent_bytes);
|
|
};
|
|
|
|
#endif
|