diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2022-07-27 11:46:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-27 11:46:45 +0200 |
commit | d8d525fff2dc34db62de2598767046de813e4f0d (patch) | |
tree | 7765f694052f5ce12c9fd8e4d483524892052bcd /src/lib/ndpi_main.c | |
parent | ab3a678ad423fcd431037093220a145925f64148 (diff) |
Update the protocol bitmask for some protocols (#1675)
Tcp retransmissions should be ignored.
Remove some unused protocol bitmasks.
Update script to download Whatsapp IP list.
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r-- | src/lib/ndpi_main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 5f6ff9aa5..9337d003f 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -6383,8 +6383,10 @@ ndpi_protocol ndpi_detection_process_packet(struct ndpi_detection_module_struct flow->tree_risk_checked = 1; } - /* It is common to not trigger any dissectors for pure TCP ACK packets */ - if(num_calls == 0 && packet->payload_packet_len != 0) + /* It is common to don't trigger any dissectors for pure TCP ACKs + and for for retransmissions */ + if(num_calls == 0 && + (packet->tcp_retransmission == 0 && packet->payload_packet_len != 0)) flow->fail_with_unknown = 1; flow->num_dissector_calls += num_calls; |