aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/mail_smtp.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2019-10-24 23:28:32 +0200
committerLuca Deri <deri@ntop.org>2019-10-24 23:28:32 +0200
commitc3f6a4a57a6fd8c4ee29cac589a177a959f191a1 (patch)
treeec1f96eb6d19bc0fa32f1b0add8ed32792544117 /src/lib/protocols/mail_smtp.c
parent0974075fa0411d4a652baa96f5a1f801e999a075 (diff)
SMTP and SSH dissection fixes
Diffstat (limited to 'src/lib/protocols/mail_smtp.c')
-rw-r--r--src/lib/protocols/mail_smtp.c6
1 files changed, 4 insertions, 2 deletions
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;
}