1 | /* |
1 | /* |
2 | device-tincd.C -- include one of the tincd low level implementations. |
2 | device-tincd.C -- include one of the tincd low level implementations. |
|
|
3 | Copyright (C) 2003 Marc Lehmann <pcg@goof.com> |
3 | |
4 | |
4 | This program is free software; you can redistribute it and/or modify |
5 | This program is free software; you can redistribute it and/or modify |
5 | it under the terms of the GNU General Public License as published by |
6 | it under the terms of the GNU General Public License as published by |
6 | the Free Software Foundation; either version 2 of the License, or |
7 | the Free Software Foundation; either version 2 of the License, or |
7 | (at your option) any later version. |
8 | (at your option) any later version. |
… | |
… | |
26 | #include <unistd.h> |
27 | #include <unistd.h> |
27 | #include <syslog.h> |
28 | #include <syslog.h> |
28 | #include <fcntl.h> |
29 | #include <fcntl.h> |
29 | |
30 | |
30 | #include "conf.h" |
31 | #include "conf.h" |
|
|
32 | |
|
|
33 | // following headers used by cygwin (maybe others) |
|
|
34 | #include "netcompat.h" |
|
|
35 | #include <signal.h> |
|
|
36 | |
|
|
37 | #define xstrdup(strd) strdup(str) |
31 | |
38 | |
32 | /* make the tincd sources feel comfortable in our environment. */ |
39 | /* make the tincd sources feel comfortable in our environment. */ |
33 | /* this was reasonably easy to do. */ |
40 | /* this was reasonably easy to do. */ |
34 | #define routing_mode 1 |
41 | #define routing_mode 1 |
35 | #define RMODE_ROUTER 0 |
42 | #define RMODE_ROUTER 0 |