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/protocols/telegram.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/protocols/telegram.c')
-rw-r--r-- | src/lib/protocols/telegram.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/protocols/telegram.c b/src/lib/protocols/telegram.c index d4f660374..93c308304 100644 --- a/src/lib/protocols/telegram.c +++ b/src/lib/protocols/telegram.c @@ -49,9 +49,6 @@ void ndpi_search_telegram(struct ndpi_detection_module_struct *ndpi_struct, NDPI_LOG_DBG(ndpi_struct, "search telegram\n"); - if(packet->payload_packet_len == 0) - return; - if(packet->tcp != NULL) { if(packet->payload_packet_len > 56) { u_int16_t dport = ntohs(packet->tcp->dest); @@ -112,7 +109,7 @@ void init_telegram_dissector(struct ndpi_detection_module_struct *ndpi_struct, u ndpi_set_bitmask_protocol_detection("Telegram", ndpi_struct, detection_bitmask, *id, NDPI_PROTOCOL_TELEGRAM, ndpi_search_telegram, - NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP, + NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, SAVE_DETECTION_BITMASK_AS_UNKNOWN, ADD_TO_DETECTION_BITMASK); |