2
* @(#) definition of ipsec_stats structure
4
* Copyright (C) 2001 Richard Guy Briggs <rgb@freeswan.org>
5
* and Michael Richardson <mcr@freeswan.org>
7
* This program is free software; you can redistribute it and/or modify it
8
* under the terms of the GNU General Public License as published by the
9
* Free Software Foundation; either version 2 of the License, or (at your
10
* option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
12
* This program is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17
* RCSID $Id: ipsec_stats.h,v 1.6 2004/04/05 19:55:07 mcr Exp $
22
* This file describes the errors/statistics that FreeSWAN collects.
25
#ifndef _IPSEC_STATS_H_
28
__u32 ips_alg_errs; /* number of algorithm errors */
29
__u32 ips_auth_errs; /* # of authentication errors */
30
__u32 ips_encsize_errs; /* # of encryption size errors*/
31
__u32 ips_encpad_errs; /* # of encryption pad errors*/
32
__u32 ips_replaywin_errs; /* # of pkt sequence errors */
35
extern int ipsec_snprintf(char * buf, ssize_t size, const char *fmt, ...);
37
#define _IPSEC_STATS_H_
38
#endif /* _IPSEC_STATS_H_ */
41
* $Log: ipsec_stats.h,v $
42
* Revision 1.6 2004/04/05 19:55:07 mcr
43
* Moved from linux/include/freeswan/ipsec_stats.h,v
45
* Revision 1.5 2004/04/05 19:41:05 mcr
46
* merged alg-branch code.
48
* Revision 1.4 2004/03/28 20:27:19 paul
49
* Included tested and confirmed fixes mcr made and dhr verified for
50
* snprint statements. Changed one other snprintf to use ipsec_snprintf
51
* so it wouldnt break compatibility with 2.0/2.2 kernels. Verified with
54
* Revision 1.4 2004/03/24 01:58:31 mcr
55
* sprintf->snprintf for formatting into proc buffer.
57
* Revision 1.3.34.1 2004/04/05 04:30:46 mcr
58
* patches for alg-branch to compile/work with 2.x openswan
60
* Revision 1.3 2002/04/24 07:36:47 mcr
61
* Moved from ./klips/net/ipsec/ipsec_stats.h,v
63
* Revision 1.2 2001/11/26 09:16:16 rgb
64
* Merge MCR's ipsec_sa, eroute, proc and struct lifetime changes.
66
* Revision 1.1.2.1 2001/09/25 02:27:00 mcr
67
* statistics moved to seperate structure.
72
* c-file-style: "linux"