mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
Reworked nDPI stats (and dependencies)
Removed deserialization code
This commit is contained in:
parent
8746498939
commit
dfb41880d5
61 changed files with 1352 additions and 1904 deletions
|
|
@ -43,17 +43,16 @@ class TcpPacketStats {
|
|||
/* TCP Keep-Alive */
|
||||
inline void incKeepAlive(u_int32_t num) { pktKeepAlive += num; }
|
||||
|
||||
char* serialize();
|
||||
void deserialize(json_object* o);
|
||||
json_object* getJSONObject();
|
||||
inline bool seqIssues() const {
|
||||
return (pktRetr || pktOOO || pktLost || pktKeepAlive);
|
||||
}
|
||||
void lua(lua_State* vm, const char* label);
|
||||
|
||||
inline void sum(TcpPacketStats* s) const {
|
||||
s->pktRetr += pktRetr, s->pktOOO += pktOOO, s->pktLost += pktLost,
|
||||
s->pktKeepAlive += pktKeepAlive;
|
||||
char* serialize();
|
||||
inline void sum(TcpPacketStats *s) const {
|
||||
s->pktRetr += pktRetr, s->pktOOO += pktOOO,
|
||||
s->pktLost += pktLost, s->pktKeepAlive += pktKeepAlive;
|
||||
}
|
||||
|
||||
inline u_int64_t get_retr() const { return pktRetr; };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue