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 #define STAT_VERSION	4
17 #define STAT_MAGIC	0x1B1DE
18 
19 /*
20 **  Statistics structure.
21 */
22 
23 struct statistics
24 {
25 	int	stat_magic;		/* magic number */
26 	int	stat_version;		/* stat file version */
27 	time_t	stat_itime;		/* file initialization time */
28 	short	stat_size;		/* size of this structure */
29 	long	stat_cf;		/* # from connections */
30 	long	stat_ct;		/* # to connections */
31 	long	stat_cr;		/* # rejected connections */
32 	long	stat_nf[MAXMAILERS];	/* # msgs from each mailer */
33 	long	stat_bf[MAXMAILERS];	/* kbytes from each mailer */
34 	long	stat_nt[MAXMAILERS];	/* # msgs to each mailer */
35 	long	stat_bt[MAXMAILERS];	/* kbytes to each mailer */
36 	long	stat_nr[MAXMAILERS];	/* # rejects by each mailer */
37 	long	stat_nd[MAXMAILERS];	/* # discards by each mailer */
38 	long	stat_nq[MAXMAILERS];	/* # quarantines by each mailer */
39 };
40