added missing equals() method assignment for ID_ANY identities
[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
15 #ifndef _STARTER_INTERFACES_H_
16 #define _STARTER_INTERFACES_H_
17
18 #include <sys/types.h>
19 #include <sys/socket.h>
20 #include <net/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 get_defaultroute(defaultroute_t *defaultroute);
32
33
34 #endif /* _STARTER_INTERFACES_H_ */
35