Skip to content

Commit

Permalink
Disabled trace
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Jan 29, 2025
1 parent 50d8293 commit 5b6bdb3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Flow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5445,15 +5445,20 @@ void Flow::updateTcpFlags(const struct bpf_timeval *when, u_int8_t flags,
memcpy(&tcp->ackTime, when, sizeof(struct timeval));
timeval_diff(&tcp->synAckTime, (struct timeval *)when, &tcp->clientRTT3WH, 1);

#ifdef DEBUG
ntop->getTrace()->traceEvent(TRACE_WARNING, "Client RTT: %.1f ms", toMs(&tcp->clientRTT3WH));
#endif

/* Coherence check */
if(tcp->clientRTT3WH.tv_sec > 5)
memset(&tcp->clientRTT3WH, 0, sizeof(tcp->clientRTT3WH));
else if(cli_host)
cli_host->updateNetworkRTT(Utils::timeval2ms(&tcp->clientRTT3WH));

#ifdef DEBUG
ntop->getTrace()->traceEvent(TRACE_WARNING, "Server RTT: %.1f ms", toMs(&tcp->serverRTT3WH));
#endif

setRTT();
iface->getTcpFlowStats()->incEstablished();
}
Expand Down

0 comments on commit 5b6bdb3

Please sign in to comment.