… | |
… | |
31 | |
31 | |
32 | #ifndef GVPE_CONF_H__ |
32 | #ifndef GVPE_CONF_H__ |
33 | #define GVPE_CONF_H__ |
33 | #define GVPE_CONF_H__ |
34 | |
34 | |
35 | #include <vector> |
35 | #include <vector> |
|
|
36 | |
|
|
37 | #include <sys/types.h> |
36 | |
38 | |
37 | #include <openssl/rsa.h> |
39 | #include <openssl/rsa.h> |
38 | |
40 | |
39 | #include "slog.h" |
41 | #include "slog.h" |
40 | #include "global.h" |
42 | #include "global.h" |
… | |
… | |
91 | int max_queue; // maixmum send queue length |
93 | int max_queue; // maixmum send queue length |
92 | |
94 | |
93 | enum connectmode { C_ONDEMAND, C_NEVER, C_ALWAYS, C_DISABLED } connectmode; |
95 | enum connectmode { C_ONDEMAND, C_NEVER, C_ALWAYS, C_DISABLED } connectmode; |
94 | bool compress; |
96 | bool compress; |
95 | bool inherit_tos; // inherit TOS in packets send to this destination |
97 | bool inherit_tos; // inherit TOS in packets send to this destination |
|
|
98 | bool low_power; // node is a low-power node (reduce cpu usage, wakeups and assume higher latency) |
96 | |
99 | |
97 | vector<const char *> allow_direct; |
100 | vector<const char *> allow_direct; |
98 | vector<const char *> deny_direct; |
101 | vector<const char *> deny_direct; |
99 | |
102 | |
100 | u32 routerprio; |
103 | u32 routerprio; |
… | |
… | |
123 | { |
126 | { |
124 | typedef vector<conf_node *> node_vector; |
127 | typedef vector<conf_node *> node_vector; |
125 | node_vector nodes; |
128 | node_vector nodes; |
126 | conf_node default_node; |
129 | conf_node default_node; |
127 | conf_node *thisnode; |
130 | conf_node *thisnode; |
|
|
131 | char serial[SERIAL_SIZE]; |
128 | char *seed_dev; // the randomd evice to use for seeding |
132 | char *seed_dev; // the randomd evice to use for seeding |
129 | double reseed; // the interval between additional seeds |
133 | double reseed; // the interval between additional seeds |
130 | int mtu; // the mtu used for outgoing tunnel packets |
134 | int mtu; // the mtu used for outgoing tunnel packets |
131 | int nfmark; // the SO_MARK // netfilter mark // fwmark |
135 | int nfmark; // the SO_MARK // netfilter mark // fwmark |
132 | double rekey; // rekey interval |
136 | double rekey; // rekey interval |