summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtpd.h
diff options
context:
space:
mode:
authorJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-02-15 10:32:24 +0000
committerJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-02-15 10:32:24 +0000
commit0f970a41753689486aa101b9be3eb12f3421f1a1 (patch)
tree3f86f4f5e8099e9276f0adf4f2be209dea13547e /usr.sbin/smtpd/smtpd.h
parent877d1aa70b2c58e7d05e67975931b87ad6006172 (diff)
New config.c that allows for process cloning. Done by pyr@ for
relayd at n2k9, and adapted to smtpd; ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/smtpd.h')
-rw-r--r--usr.sbin/smtpd/smtpd.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/smtpd.h b/usr.sbin/smtpd/smtpd.h
index 85b2249136c..07e20c2468c 100644
--- a/usr.sbin/smtpd/smtpd.h
+++ b/usr.sbin/smtpd/smtpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd.h,v 1.69 2009/02/14 18:37:12 jacekm Exp $ */
+/* $OpenBSD: smtpd.h,v 1.70 2009/02/15 10:32:23 jacekm Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -631,9 +631,11 @@ struct smtpd {
struct timeval sc_qintval;
u_int32_t sc_maxconn;
struct event sc_ev;
- int sc_pipes[PROC_COUNT]
- [PROC_COUNT][2];
+ int *sc_pipes[PROC_COUNT]
+ [PROC_COUNT];
struct imsgbuf *sc_ibufs[PROC_COUNT];
+ int sc_instances[PROC_COUNT];
+ int sc_instance;
struct passwd *sc_pw;
char sc_hostname[MAXHOSTNAMELEN];
TAILQ_HEAD(listenerlist, listener) sc_listeners;
@@ -865,6 +867,7 @@ void purge_config(struct smtpd *, u_int8_t);
void unconfigure(struct smtpd *);
void configure(struct smtpd *);
void init_peers(struct smtpd *);
+void config_pipes(struct smtpd *, struct peer *, u_int);
void config_peers(struct smtpd *, struct peer *, u_int);
/* parse.y */