~ubuntu-branches/ubuntu/oneiric/strongswan/oneiric

« back to all changes in this revision

Viewing changes to src/libfreeswan/ipsec_radij.h

  • Committer: Bazaar Package Importer
  • Author(s): Rene Mayrhofer
  • Date: 2009-04-18 20:28:51 UTC
  • mfrom: (1.1.9 upstream) (2.1.15 karmic)
  • Revision ID: james.westby@ubuntu.com-20090418202851-ep722qhmzvpxh6yj
Tags: 4.3.2-1
Urgency high because of security issue and FTBFS.
* New upstream release, fixes security bug.
* Fix padlock handling for i386 in debian/rules.
  Closes: #525652 (FTBFS on i386)
* Acknowledge NMUs by security team.
  Closes: #533837, #531612
* Add "Conflicts: strongswan (< 4.2.12-1)" to libstrongswan, 
  strongswan-starter, strongswan-ikev1, and strongswan-ikev2 to force
  update of the strongswan package on installation and avoid conflicts
  caused by package restructuring.
  Closes: #526037: strongswan-ikev2 and strongswan: error when trying to 
                   install together
  Closes: #526486: strongswan and libstrongswan: error when trying to 
                   install together
  Closes: #526487: strongswan-ikev1 and strongswan: error when trying to 
                   install together
  Closes: #526488: strongswan-starter and strongswan: error when trying to 
                   install together
* Debconf templates and debian/control reviewed by the debian-l10n-
  english team as part of the Smith review project. Closes: #528073
* Debconf translation updates:
  Closes: #525234: [INTL:ja] Update po-debconf template translation (ja.po) 
  Closes: #528323: [INTL:sv] po-debconf file for strongswan 
  Closes: #528370: [INTL:vi] Vietnamese debconf templates translation update 
  Closes: #529027: [INTL:pt] Updated Portuguese translation for debconf messages
  Closes: #529071: [INTL:fr] French debconf templates translation update 
  Closes: #529592: nb translation of debconf PO for strongSWAN 
  Closes: #529638: [INTL:ru] Russian debconf templates translation 
  Closes: #529661: Updated Czech translation of strongswan debconf messages 
  Closes: #529742: [INTL:eu] strongswan debconf basque translation 
  Closes: #530273: [INTL:fi] Finnish translation of the debconf templates
  Closes: #529063: [INTL:gl] strongswan 4.2.14-2 debconf translation update

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * @(#) Definitions relevant to the IPSEC <> radij tree interfacing
3
 
 * Copyright (C) 1996, 1997  John Ioannidis.
4
 
 * Copyright (C) 1998, 1999, 2000, 2001  Richard Guy Briggs.
5
 
 * 
6
 
 * This program is free software; you can redistribute it and/or modify it
7
 
 * under the terms of the GNU General Public License as published by the
8
 
 * Free Software Foundation; either version 2 of the License, or (at your
9
 
 * option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
10
 
 * 
11
 
 * This program is distributed in the hope that it will be useful, but
12
 
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13
 
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14
 
 * for more details.
15
 
 *
16
 
 * RCSID $Id: ipsec_radij.h 3265 2007-10-08 19:52:55Z andreas $
17
 
 */
18
 
 
19
 
#ifndef _IPSEC_RADIJ_H
20
 
 
21
 
#include <freeswan.h>
22
 
 
23
 
int ipsec_walk(char *);
24
 
 
25
 
int ipsec_rj_walker_procprint(struct radij_node *, void *);
26
 
int ipsec_rj_walker_delete(struct radij_node *, void *);
27
 
 
28
 
/* This structure is used to pass information between
29
 
 * ipsec_eroute_get_info and ipsec_rj_walker_procprint
30
 
 * (through rj_walktree) and between calls of ipsec_rj_walker_procprint.
31
 
 */
32
 
struct wsbuf
33
 
{
34
 
        /* from caller of ipsec_eroute_get_info: */
35
 
        char *const buffer;     /* start of buffer provided */
36
 
        const int length;       /* length of buffer provided */
37
 
        const off_t offset;     /* file position of first character of interest */
38
 
        /* accumulated by ipsec_rj_walker_procprint: */
39
 
        int len;                /* number of character filled into buffer */
40
 
        off_t begin;            /* file position contained in buffer[0] (<=offset) */
41
 
};
42
 
 
43
 
 
44
 
extern struct radij_node_head *rnh;
45
 
extern spinlock_t eroute_lock;
46
 
 
47
 
struct eroute * ipsec_findroute(struct sockaddr_encap *);
48
 
 
49
 
#define O1(x) (int)(((x)>>24)&0xff)
50
 
#define O2(x) (int)(((x)>>16)&0xff)
51
 
#define O3(x) (int)(((x)>>8)&0xff)
52
 
#define O4(x) (int)(((x))&0xff)
53
 
 
54
 
#ifdef CONFIG_IPSEC_DEBUG
55
 
extern int debug_radij;
56
 
void rj_dumptrees(void);
57
 
 
58
 
#define DB_RJ_DUMPTREES 0x0001
59
 
#define DB_RJ_FINDROUTE 0x0002
60
 
#endif /* CONFIG_IPSEC_DEBUG */
61
 
 
62
 
#define _IPSEC_RADIJ_H
63
 
#endif