OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / freeswan / pluto / virtual.h
1 /* FreeS/WAN Virtual IP Management
2  * Copyright (C) 2002 Mathieu Lafon - Arkoon Network Security
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License as published by the
6  * Free Software Foundation; either version 2 of the License, or (at your
7  * option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12  * for more details.
13  *
14  * RCSID $Id: virtual.h,v 1.3 2003-09-29 05:08:44 philipc Exp $
15  */
16
17 #ifndef _VIRTUAL_IP_H
18 #define _VIRTUAL_IP_H
19
20 extern void init_virtual_ip(const char *private_list);
21
22 extern struct virtual_t *create_virtual(const struct connection *c,
23     const char *string);
24
25 extern bool is_virtual_end(const struct end *that);
26 extern bool is_virtual_connection(const struct connection *c);
27 extern bool is_virtual_net_allowed(const struct connection *c,
28     const ip_subnet *peer_net, const ip_address *his_addr);
29
30 #endif /* _VIRTUAL_IP_H */
31