/* Libreswan Virtual IP Management * Copyright (C) 2002 Mathieu Lafon - Arkoon Network Security * * 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. */ #ifndef _VIRTUAL_IP_H #define _VIRTUAL_IP_H extern void show_virtual_private(void); extern void init_virtual_ip(const char *private_list); extern void free_virtual_ip(); extern struct virtual_t *create_virtual(const struct connection *c, const char *string); extern bool is_virtual_end(const struct end *that); extern bool is_virtual_connection(const struct connection *c); extern bool is_virtual_sr(const struct spd_route *sr); extern bool is_virtual_vhost(const struct end *that); extern err_t is_virtual_net_allowed(const struct connection *c, const ip_subnet *peer_net, const ip_address *his_addr); #endif /* _VIRTUAL_IP_H */