~ubuntu-branches/ubuntu/hardy/openswan/hardy-updates

« back to all changes in this revision

Viewing changes to linux/include/openswan/ipsec_stats.h

  • Committer: Bazaar Package Importer
  • Author(s): Rene Mayrhofer
  • Date: 2005-01-27 16:10:11 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050127161011-idgybmyz3vwhpfiq
Tags: 2.3.0-2
Urgency HIGH due to security issue and problems with build-deps in sarge.
* Fix the security issue. Please see
  http://www.idefense.com/application/poi/display?id=190&
      type=vulnerabilities&flashstatus=false
  for more details. Thanks to Martin Schulze for informing me about
  this issue.
  Closes: #292458: Openswan XAUTH/PAM Buffer Overflow Vulnerability
* Added a Build-Dependency to lynx.
  Closes: #291143: openswan: FTBFS: Missing build dependency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.6 2004/04/05 19:55:07 mcr Exp $
 
18
 *
 
19
 */
 
20
 
 
21
/* 
 
22
 * This file describes the errors/statistics that FreeSWAN collects.
 
23
 */
 
24
 
 
25
#ifndef _IPSEC_STATS_H_
 
26
 
 
27
struct 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
 
 
35
extern int ipsec_snprintf(char * buf, ssize_t size, const char *fmt, ...);
 
36
 
 
37
#define _IPSEC_STATS_H_
 
38
#endif /* _IPSEC_STATS_H_ */
 
39
 
 
40
/*
 
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
 
44
 *
 
45
 * Revision 1.5  2004/04/05 19:41:05  mcr
 
46
 *      merged alg-branch code.
 
47
 *
 
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
 
52
 * dhr. (thanks dhr!)
 
53
 *
 
54
 * Revision 1.4  2004/03/24 01:58:31  mcr
 
55
 *     sprintf->snprintf for formatting into proc buffer.
 
56
 *
 
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
 
59
 *
 
60
 * Revision 1.3  2002/04/24 07:36:47  mcr
 
61
 * Moved from ./klips/net/ipsec/ipsec_stats.h,v
 
62
 *
 
63
 * Revision 1.2  2001/11/26 09:16:16  rgb
 
64
 * Merge MCR's ipsec_sa, eroute, proc and struct lifetime changes.
 
65
 *
 
66
 * Revision 1.1.2.1  2001/09/25 02:27:00  mcr
 
67
 *      statistics moved to seperate structure.
 
68
 *
 
69
 *
 
70
 *
 
71
 * Local variables:
 
72
 * c-file-style: "linux"
 
73
 * End:
 
74
 *
 
75
 */