Imported start of brand new codebase for tinc 2.0.
[tinc] / rt / rt.h
1 /*
2     route.h -- routing
3
4     Copyright (C) 2003-2004 Guus Sliepen <guus@tinc-vpn.org>,
5                   2003-2004 Ivo Timmermans <ivo@tinc-vpn.org>
6
7     This program is free software; you can redistribute it and/or modify
8     it under the terms of the GNU General Public License as published by
9     the Free Software Foundation; either version 2 of the License, or
10     (at your option) any later version.
11
12     This program is distributed in the hope that it will be useful,
13     but WITHOUT ANY WARRANTY; without even the implied warranty of
14     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15     GNU General Public License for more details.
16
17     You should have received a copy of the GNU General Public License
18     along with this program; if not, write to the Free Software
19     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
21     $Id$
22 */
23
24 #ifndef __RT_H__
25 #define __RT_H__
26
27 #include "tnl/tnl.h"
28 #include "vnd/vnd.h"
29
30 typedef enum rt_mode {
31         RT_MODE_ROUTER,
32         RT_MODE_SWITCH,
33         RT_MODE_HUB,
34 } rt_mode_t;
35
36 extern int rt_af;
37 extern enum rt_mode rt_mode;
38 extern bool rt_hostnames;
39 extern bool rt_priorityinheritance;
40 extern int rt_macexpire;
41 extern int rt_maxtimeout;
42
43 extern bool rt_init(void);
44 extern bool rt_exit(void);
45
46 #endif