]> git.ipfire.org Git - people/ms/strongswan.git/blame - linux/include/freeswan/ipsec_stats.h
- fixed stroke error output to starter
[people/ms/strongswan.git] / linux / include / freeswan / ipsec_stats.h
CommitLineData
997358a6
MW
1/*
2 * @(#) definition of ipsec_stats structure
3 *
4 * Copyright (C) 2001 Richard Guy Briggs <rgb@freeswan.org>
5 * and Michael Richardson <mcr@freeswan.org>
6 *
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>.
11 *
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
15 * for more details.
16 *
17 * RCSID $Id: ipsec_stats.h,v 1.2 2004/03/30 19:33:52 as Exp $
18 *
19 */
20
21/*
22 * This file describes the errors/statistics that FreeSWAN collects.
23 */
24
25#ifndef _IPSEC_STATS_H_
26
27struct ipsec_stats {
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 */
33};
34
35extern int ipsec_snprintf(char * buf, ssize_t size, const char *fmt, ...);
36
37#define _IPSEC_STATS_H_
38#endif /* _IPSEC_STATS_H_ */