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.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user