make starter behave more gracefully in the presence of non-fatal errors
[strongswan.git] / src / starter / interfaces.h
1 /* strongSwan IPsec interfaces management
2 * Copyright (C) 2001-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: interfaces.h,v 1.6 2006/01/06 20:24:07 as Exp $
15 */
16
17 #ifndef _STARTER_INTERFACES_H_
18 #define _STARTER_INTERFACES_H_
19
20 #include <linux/if.h>
21
22 #include "../pluto/constants.h"
23
24 typedef struct {
25 bool defined;
26 char iface[IFNAMSIZ];
27 ip_address addr;
28 ip_address nexthop;
29 } defaultroute_t;
30
31 extern void starter_ifaces_init (void);
32 extern int starter_iface_find(char *iface, int af, ip_address *dst
33 , ip_address *nh);
34 extern int starter_ifaces_load (char **ifaces, unsigned int omtu, bool nat_t
35 , defaultroute_t *defaultroute);
36 extern void starter_ifaces_clear (void);
37 extern void get_defaultroute(defaultroute_t *defaultroute);
38
39
40 #endif /* _STARTER_INTERFACES_H_ */
41