diff options
author | Gilles Chehade <gilles@poolp.org> | 2019-01-05 20:41:09 +0100 |
---|---|---|
committer | Gilles Chehade <gilles@poolp.org> | 2019-01-05 20:41:09 +0100 |
commit | ef2f368219152771ac32adaa05dc1aee4c2bfe29 (patch) | |
tree | cc57d171c3cb44eb00eab89a66e1af28b42255e8 /smtpd/lka_report.c | |
parent | Merge branch 'master' into portable (diff) | |
parent | sync (diff) | |
download | OpenSMTPD-ef2f368219152771ac32adaa05dc1aee4c2bfe29.tar.xz OpenSMTPD-ef2f368219152771ac32adaa05dc1aee4c2bfe29.zip |
Merge branch 'master' into portable
Diffstat (limited to 'smtpd/lka_report.c')
-rw-r--r-- | smtpd/lka_report.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/smtpd/lka_report.c b/smtpd/lka_report.c index ddf7c7cf..cf43d51a 100644 --- a/smtpd/lka_report.c +++ b/smtpd/lka_report.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lka_report.c,v 1.16 2018/12/21 14:33:52 gilles Exp $ */ +/* $OpenBSD: lka_report.c,v 1.17 2019/01/05 09:43:39 gilles Exp $ */ /* * Copyright (c) 2018 Gilles Chehade <gilles@poolp.org> @@ -68,6 +68,8 @@ static struct smtp_events { { "protocol-server" }, { "filter-response" }, + + { "timeout" }, }; @@ -410,3 +412,11 @@ lka_report_smtp_filter_response(const char *direction, struct timeval *tv, uint6 "%016"PRIx64"|%s|%s%s%s\n", reqid, phase_name, response_name, param ? "|" : "", param ? param : ""); } + +void +lka_report_smtp_timeout(const char *direction, struct timeval *tv, uint64_t reqid) +{ + report_smtp_broadcast(reqid, direction, tv, "timeout", + "%016"PRIx64"\n", + reqid); +} |