Back to index

opendkim  2.6.2
stats.h
Go to the documentation of this file.
00001 /*
00002 **  Copyright (c) 2007 Sendmail, Inc. and its suppliers.
00003 **     All rights reserved.
00004 **
00005 **  Copyright (c) 2009-2011, The OpenDKIM Project.  All rights reserved.
00006 **
00007 **  $Id: stats.h,v 1.10.2.1 2010/10/27 21:43:09 cm-msk Exp $
00008 */
00009 
00010 #ifndef _STATS_H_
00011 #define _STATS_H_
00012 
00013 #ifndef lint
00014 static char stats_h_id[] = "@(#)$Id: stats.h,v 1.10.2.1 2010/10/27 21:43:09 cm-msk Exp $";
00015 #endif /* !lint */
00016 
00017 /* system includes */
00018 #include <sys/param.h>
00019 #include <sys/types.h>
00020 #include <sys/socket.h>
00021 
00022 /* libopendkim includes */
00023 #include <dkim.h>
00024 
00025 /* opendkim includes */
00026 #include "opendkim.h"
00027 
00028 #define DKIMS_VERSION              3
00029 
00030 /* column numbers */
00031 #define       DKIMS_MI_JOBID              0
00032 #define       DKIMS_MI_REPORTER    1
00033 #define       DKIMS_MI_FROMDOMAIN  2
00034 #define       DKIMS_MI_IPADDR             3
00035 #define       DKIMS_MI_MSGTIME     4
00036 #define       DKIMS_MI_MSGLEN             5
00037 #define       DKIMS_MI_SIGCOUNT    6
00038 #define DKIMS_MI_ATPS              7
00039 #define DKIMS_MI_SPAM              8
00040 #define DKIMS_MI_MAX        8
00041 
00042 #define       DKIMS_SI_DOMAIN             0
00043 #define       DKIMS_SI_PASS        1
00044 #define       DKIMS_SI_FAIL_BODY   2
00045 #define       DKIMS_SI_SIGLENGTH   3
00046 #define       DKIMS_SI_SIGERROR    4
00047 #define       DKIMS_SI_DNSSEC             5
00048 #define DKIMS_SI_MAX        5
00049 
00050 /* PROTOTYPES */
00051 extern void dkimf_stats_init __P((void));
00052 extern int dkimf_stats_record __P((char *, u_char *, char *, char *, Header,
00053                                    DKIM *,
00054 #ifdef _FFR_STATSEXT
00055                                    struct statsext *,
00056 #endif /* _FFR_STATSEXT */
00057                                    int, int, struct sockaddr *));
00058 
00059 #endif /* _STATS_H_ */