aboutsummaryrefslogtreecommitdiffstats
path: root/smtpd/lka.c
diff options
context:
space:
mode:
authorGilles Chehade <gilles@poolp.org>2019-08-29 10:41:25 +0200
committerGilles Chehade <gilles@poolp.org>2019-08-29 10:41:25 +0200
commita99759f738646b0c42e5682daa2456adfcda5187 (patch)
treea2f340d077fa5d43e553de065deb43ee468b0113 /smtpd/lka.c
parentsync (diff)
downloadOpenSMTPD-a99759f738646b0c42e5682daa2456adfcda5187.tar.xz
OpenSMTPD-a99759f738646b0c42e5682daa2456adfcda5187.zip
sync
Diffstat (limited to 'smtpd/lka.c')
-rw-r--r--smtpd/lka.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/smtpd/lka.c b/smtpd/lka.c
index 07b93f62..0d4b43db 100644
--- a/smtpd/lka.c
+++ b/smtpd/lka.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lka.c,v 1.239 2019/07/26 06:30:13 gilles Exp $ */
+/* $OpenBSD: lka.c,v 1.240 2019/08/28 15:50:36 martijn Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -84,6 +84,7 @@ lka_imsg(struct mproc *p, struct imsg *imsg)
const char *response;
const char *ciphers;
const char *address;
+ const char *domain;
const char *helomethod;
const char *heloname;
const char *filter_name;
@@ -393,6 +394,17 @@ lka_imsg(struct mproc *p, struct imsg *imsg)
lka_report_smtp_link_connect(direction, &tv, reqid, rdns, fcrdns, &ss_src, &ss_dest);
return;
+ case IMSG_REPORT_SMTP_LINK_GREETING:
+ m_msg(&m, imsg);
+ m_get_string(&m, &direction);
+ m_get_timeval(&m, &tv);
+ m_get_id(&m, &reqid);
+ m_get_string(&m, &domain);
+ m_end(&m);
+
+ lka_report_smtp_link_greeting(direction, reqid, &tv, domain);
+ return;
+
case IMSG_REPORT_SMTP_LINK_DISCONNECT:
m_msg(&m, imsg);
m_get_string(&m, &direction);