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/edonkey.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/edonkey.c')
-rw-r--r-- | src/lib/protocols/edonkey.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lib/protocols/edonkey.c b/src/lib/protocols/edonkey.c index 5dfb9b6bd..54ccbbeca 100644 --- a/src/lib/protocols/edonkey.c +++ b/src/lib/protocols/edonkey.c @@ -165,11 +165,6 @@ static void ndpi_check_edonkey(struct ndpi_detection_module_struct *ndpi_struct, return; } - if(payload_len == 0) { - NDPI_EXCLUDE_PROTO(ndpi_struct, flow); - return; - } - /* Check if we so far detected the protocol in the request or not. */ if(flow->edonkey_stage == 0) { NDPI_LOG_DBG2(ndpi_struct, "EDONKEY stage 0: \n"); @@ -218,7 +213,7 @@ void init_edonkey_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_ ndpi_set_bitmask_protocol_detection("eDonkey", ndpi_struct, detection_bitmask, *id, NDPI_PROTOCOL_EDONKEY, ndpi_search_edonkey, - NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITHOUT_RETRANSMISSION, + NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, SAVE_DETECTION_BITMASK_AS_UNKNOWN, ADD_TO_DETECTION_BITMASK); |