From 9293ff427cf29f40bceb0af53e71e6fe0dd33b21 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Wed, 10 May 2006 13:18:28 +0000 Subject: --- src/libfreeswan/freeswan/ipsec_stats.h | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/libfreeswan/freeswan/ipsec_stats.h (limited to 'src/libfreeswan/freeswan/ipsec_stats.h') diff --git a/src/libfreeswan/freeswan/ipsec_stats.h b/src/libfreeswan/freeswan/ipsec_stats.h new file mode 100644 index 000000000..e4be11d29 --- /dev/null +++ b/src/libfreeswan/freeswan/ipsec_stats.h @@ -0,0 +1,38 @@ +/* + * @(#) definition of ipsec_stats structure + * + * Copyright (C) 2001 Richard Guy Briggs + * and Michael Richardson + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. See . + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * RCSID $Id: ipsec_stats.h,v 1.2 2004/03/30 19:33:52 as Exp $ + * + */ + +/* + * This file describes the errors/statistics that FreeSWAN collects. + */ + +#ifndef _IPSEC_STATS_H_ + +struct ipsec_stats { + __u32 ips_alg_errs; /* number of algorithm errors */ + __u32 ips_auth_errs; /* # of authentication errors */ + __u32 ips_encsize_errs; /* # of encryption size errors*/ + __u32 ips_encpad_errs; /* # of encryption pad errors*/ + __u32 ips_replaywin_errs; /* # of pkt sequence errors */ +}; + +extern int ipsec_snprintf(char * buf, ssize_t size, const char *fmt, ...); + +#define _IPSEC_STATS_H_ +#endif /* _IPSEC_STATS_H_ */ -- cgit v1.2.3