… | |
… | |
29 | # include <rsa.h> |
29 | # include <rsa.h> |
30 | #endif |
30 | #endif |
31 | |
31 | |
32 | #include <vector> |
32 | #include <vector> |
33 | |
33 | |
|
|
34 | #include "slog.h" |
34 | #include "global.h" |
35 | #include "global.h" |
35 | |
36 | |
36 | #define DEFAULT_REKEY 3600 |
37 | #define DEFAULT_REKEY 3600 |
37 | #define DEFAULT_KEEPALIVE 60 // one keepalive/minute (it's just 48 bytes...) |
38 | #define DEFAULT_KEEPALIVE 60 // one keepalive/minute (it's just 48 bytes...) |
38 | #define DEFAULT_PORT 655 // same as tinc, conflicts would be rara |
39 | #define DEFAULT_PORT 655 // same as tinc, conflicts would be rara |
… | |
… | |
77 | int rekey; // rekey interval |
78 | int rekey; // rekey interval |
78 | int keepalive; // keepalive probes interval |
79 | int keepalive; // keepalive probes interval |
79 | char *ifname; // the interface name (tap0 ...) |
80 | char *ifname; // the interface name (tap0 ...) |
80 | bool ifpersist; // should the interface be persistent |
81 | bool ifpersist; // should the interface be persistent |
81 | char *prikeyfile; |
82 | char *prikeyfile; |
|
|
83 | loglevel llevel; |
82 | RSA *rsa_key; // our private rsa key |
84 | RSA *rsa_key; // our private rsa key |
83 | |
85 | |
84 | char *script_if_up; |
86 | char *script_if_up; |
85 | char *script_node_up; |
87 | char *script_node_up; |
86 | char *script_node_down; |
88 | char *script_node_down; |