xref: /titanic_52/usr/src/cmd/sendmail/include/sendmail/mailstats.h (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1 /*
2  * Copyright (c) 1998, 1999 Sendmail, Inc. and its suppliers.
3  *	All rights reserved.
4  * Copyright (c) 1983 Eric P. Allman.  All rights reserved.
5  * Copyright (c) 1988, 1993
6  *	The Regents of the University of California.  All rights reserved.
7  *
8  * By using this file, you agree to the terms and conditions set
9  * forth in the LICENSE file which can be found at the top level of
10  * the sendmail distribution.
11  *
12  *
13  *	$Id: mailstats.h,v 8.19 2002/06/27 22:47:22 gshapiro Exp $
14  */
15 
16 #pragma ident	"%Z%%M%	%I%	%E% SMI"
17 
18 #define STAT_VERSION	4
19 #define STAT_MAGIC	0x1B1DE
20 
21 /*
22 **  Statistics structure.
23 */
24 
25 struct statistics
26 {
27 	int	stat_magic;		/* magic number */
28 	int	stat_version;		/* stat file version */
29 	time_t	stat_itime;		/* file initialization time */
30 	short	stat_size;		/* size of this structure */
31 	long	stat_cf;		/* # from connections */
32 	long	stat_ct;		/* # to connections */
33 	long	stat_cr;		/* # rejected connections */
34 	long	stat_nf[MAXMAILERS];	/* # msgs from each mailer */
35 	long	stat_bf[MAXMAILERS];	/* kbytes from each mailer */
36 	long	stat_nt[MAXMAILERS];	/* # msgs to each mailer */
37 	long	stat_bt[MAXMAILERS];	/* kbytes to each mailer */
38 	long	stat_nr[MAXMAILERS];	/* # rejects by each mailer */
39 	long	stat_nd[MAXMAILERS];	/* # discards by each mailer */
40 	long	stat_nq[MAXMAILERS];	/* # quarantines by each mailer */
41 };
42