mirror of
https://github.com/ntop/ntopng.git
synced 2026-06-01 22:42:06 +00:00
Implements tcp packet stats for hosts, ases, networks in interface views
This commit is contained in:
parent
eb3542d7e7
commit
af61cfd483
4 changed files with 123 additions and 88 deletions
|
|
@ -1333,10 +1333,14 @@ void NetworkInterface::processFlow(ParsedFlow *zflow, bool zmq_flow) {
|
|||
/* TCP flags are cumulated client + server */
|
||||
flow->setTcpFlags(zflow->tcp.tcp_flags, src2dst_direction);
|
||||
|
||||
flow->incTcpBadStats(true,
|
||||
Flow::incTcpBadStats(true,
|
||||
flow->getFlowTrafficStats(),
|
||||
flow->get_cli_host(), flow->get_srv_host(),
|
||||
zflow->tcp.ooo_in_pkts, zflow->tcp.retr_in_pkts,
|
||||
zflow->tcp.lost_in_pkts, 0 /* TODO: add keepalive */);
|
||||
flow->incTcpBadStats(false,
|
||||
Flow::incTcpBadStats(false,
|
||||
flow->getFlowTrafficStats(),
|
||||
flow->get_cli_host(), flow->get_srv_host(),
|
||||
zflow->tcp.ooo_out_pkts, zflow->tcp.retr_out_pkts,
|
||||
zflow->tcp.lost_out_pkts, 0 /* TODO: add keepalive */);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue