mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-31 04:48:12 +00:00
Updated IAT calculation for TCP flows skipping 3WH packets
This commit is contained in:
parent
0bbda384c9
commit
7379cc1a1c
5 changed files with 30 additions and 14 deletions
|
|
@ -1448,7 +1448,6 @@ bool NetworkInterface::processPacket(u_int32_t bridge_iface_idx,
|
|||
*hostFlow = NULL;
|
||||
|
||||
if(!isDynamicInterface()) {
|
||||
|
||||
#ifdef NTOPNG_PRO
|
||||
#ifndef HAVE_NEDGE
|
||||
/* Custom disaggregation */
|
||||
|
|
@ -1753,11 +1752,17 @@ bool NetworkInterface::processPacket(u_int32_t bridge_iface_idx,
|
|||
#ifndef HAVE_NEDGE
|
||||
#ifdef __OpenBSD__
|
||||
struct timeval tv_ts;
|
||||
|
||||
tv_ts.tv_sec = h->ts.tv_sec;
|
||||
tv_ts.tv_usec = h->ts.tv_usec;
|
||||
flow->incStats(src2dst_direction, len_on_wire, payload, trusted_payload_len, l4_proto, is_fragment, &tv_ts);
|
||||
|
||||
flow->incStats(src2dst_direction, len_on_wire, payload,
|
||||
trusted_payload_len, l4_proto, is_fragment,
|
||||
tcp_flags, &tv_ts);
|
||||
#else
|
||||
flow->incStats(src2dst_direction, len_on_wire, payload, trusted_payload_len, l4_proto, is_fragment, &h->ts);
|
||||
flow->incStats(src2dst_direction, len_on_wire, payload,
|
||||
trusted_payload_len, l4_proto, is_fragment,
|
||||
tcp_flags, &h->ts);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue