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