summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtpd.h
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2009-09-12 09:22:34 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2009-09-12 09:22:34 +0000
commit826dc1a7c1baec9e10f8c6c94c8361e82b2e476c (patch)
tree0c0a156df4a3ecc528e70f61cdfd6df6ba5ce38b /usr.sbin/smtpd/smtpd.h
parent164736bd059d0cbfd8ef6da3b220485deb414db0 (diff)
- fix a compile time warning
- add a new stats counter to distinguish between command lines which exceeded the limit and data lines which exceeded the limits
Diffstat (limited to 'usr.sbin/smtpd/smtpd.h')
-rw-r--r--usr.sbin/smtpd/smtpd.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/smtpd/smtpd.h b/usr.sbin/smtpd/smtpd.h
index d539be9b01c..e6a9faaab10 100644
--- a/usr.sbin/smtpd/smtpd.h
+++ b/usr.sbin/smtpd/smtpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd.h,v 1.139 2009/09/04 11:49:23 jacekm Exp $ */
+/* $OpenBSD: smtpd.h,v 1.140 2009/09/12 09:22:33 gilles Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -88,9 +88,9 @@
#define FAST_RESPONSES 2
/* rfc5321 limits */
-#define SMTP_TEXTLINE_MAX 1000
+#define SMTP_DATALINE_MAX 1000
#define SMTP_CMDLINE_MAX 512
-#define SMTP_ANYLINE_MAX SMTP_TEXTLINE_MAX
+#define SMTP_ANYLINE_MAX SMTP_DATALINE_MAX
#define F_STARTTLS 0x01
#define F_SMTPS 0x02
@@ -664,7 +664,8 @@ struct s_session {
size_t write_eof;
size_t toofast;
size_t tempfail;
- size_t linetoolong;
+ size_t cmdlinetoolong;
+ size_t datalinetoolong;
size_t delays;
};