Skip to content

Commit 64cdf17

Browse files
committed
exclude pure acks
1 parent 5a90443 commit 64cdf17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rustiflow/src/flows/features/retransmission_stats.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ impl FlowFeature for RetransmissionStats {
4242
return;
4343
}
4444

45-
// Exclude pure ACKs (ACK flag set, no data length)
46-
if (packet.flags & ACK_FLAG) != 0 && packet.data_length == 0 {
45+
// Exclude pure ACKs (only ACK flag set, no data length)
46+
if packet.flags == ACK_FLAG && packet.data_length == 0 {
4747
return;
4848
}
4949

0 commit comments

Comments
 (0)