diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2011-07-20 10:22:55 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2011-07-20 10:22:55 +0000 |
commit | 8e9f07389c9968fc6313dfa520da7ec09d892b76 (patch) | |
tree | b96d1787bf2ee1a41d9c28812ceba6b8e15aa5ab /usr.sbin/smtpd/smtpd.h | |
parent | 78cc6364dc5e6e09fe86328fe858d182fa0d8dab (diff) |
Fix reporting of permanent/temporary failures for MX lookups.
Simplify code a bit while there.
ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/smtpd.h')
-rw-r--r-- | usr.sbin/smtpd/smtpd.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/smtpd.h b/usr.sbin/smtpd/smtpd.h index f2a92a0e976..1be8b5c8c8b 100644 --- a/usr.sbin/smtpd/smtpd.h +++ b/usr.sbin/smtpd/smtpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd.h,v 1.227 2011/06/09 17:41:52 gilles Exp $ */ +/* $OpenBSD: smtpd.h,v 1.228 2011/07/20 10:22:54 eric Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -745,6 +745,14 @@ struct forward_req { struct envelope envelope; }; +enum dns_status { + DNS_OK = 0, + DNS_RETRY, + DNS_EINVAL, + DNS_ENONAME, + DNS_ENOTFOUND, +}; + struct dns { u_int64_t id; char host[MAXHOSTNAMELEN]; |