From c3f6a4a57a6fd8c4ee29cac589a177a959f191a1 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Thu, 24 Oct 2019 23:28:32 +0200 Subject: SMTP and SSH dissection fixes --- src/lib/protocols/mail_smtp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/lib/protocols/mail_smtp.c') diff --git a/src/lib/protocols/mail_smtp.c b/src/lib/protocols/mail_smtp.c index fcb390229..2cd4657c9 100644 --- a/src/lib/protocols/mail_smtp.c +++ b/src/lib/protocols/mail_smtp.c @@ -283,12 +283,14 @@ int ndpi_extra_search_mail_smtp_tcp(struct ndpi_detection_module_struct *ndpi_st static void smtpInitExtraPacketProcessing(struct ndpi_flow_struct *flow) { #ifdef SMTP_DEBUG - printf("**** %s()\n", __FUNCTION__); + static u_int num = 0; + + printf("**** %s(%u)\n", __FUNCTION__, ++num); #endif flow->check_extra_packets = 1; /* At most 7 packets should almost always be enough */ - flow->max_extra_packets_to_check = 7; + flow->max_extra_packets_to_check = 12; flow->extra_packets_func = ndpi_extra_search_mail_smtp_tcp; } -- cgit v1.2.3