… | |
… | |
91 | int max_queue; // maixmum send queue length |
91 | int max_queue; // maixmum send queue length |
92 | |
92 | |
93 | enum connectmode { C_ONDEMAND, C_NEVER, C_ALWAYS, C_DISABLED } connectmode; |
93 | enum connectmode { C_ONDEMAND, C_NEVER, C_ALWAYS, C_DISABLED } connectmode; |
94 | bool compress; |
94 | bool compress; |
95 | bool inherit_tos; // inherit TOS in packets send to this destination |
95 | bool inherit_tos; // inherit TOS in packets send to this destination |
|
|
96 | bool low_power; // node is a low-power node (reduce cpu usage, wakeups and assume higher latency) |
96 | |
97 | |
97 | vector<const char *> allow_direct; |
98 | vector<const char *> allow_direct; |
98 | vector<const char *> deny_direct; |
99 | vector<const char *> deny_direct; |
99 | |
100 | |
100 | u32 routerprio; |
101 | u32 routerprio; |
… | |
… | |
123 | { |
124 | { |
124 | typedef vector<conf_node *> node_vector; |
125 | typedef vector<conf_node *> node_vector; |
125 | node_vector nodes; |
126 | node_vector nodes; |
126 | conf_node default_node; |
127 | conf_node default_node; |
127 | conf_node *thisnode; |
128 | conf_node *thisnode; |
|
|
129 | char serial[SERIAL_SIZE]; |
128 | char *seed_dev; // the randomd evice to use for seeding |
130 | char *seed_dev; // the randomd evice to use for seeding |
129 | double reseed; // the interval between additional seeds |
131 | double reseed; // the interval between additional seeds |
130 | int mtu; // the mtu used for outgoing tunnel packets |
132 | int mtu; // the mtu used for outgoing tunnel packets |
131 | int nfmark; // the SO_MARK // netfilter mark // fwmark |
133 | int nfmark; // the SO_MARK // netfilter mark // fwmark |
132 | double rekey; // rekey interval |
134 | double rekey; // rekey interval |
… | |
… | |
168 | |
170 | |
169 | void init (); |
171 | void init (); |
170 | void cleanup (); |
172 | void cleanup (); |
171 | void clear (); |
173 | void clear (); |
172 | |
174 | |
|
|
175 | conf_node *find_node (const char *name); |
|
|
176 | |
173 | // create a filename from string, replacing %s by the nodename |
177 | // create a filename from string, replacing %s by the nodename |
174 | // and using relative paths under confbase. |
178 | // and using relative paths under confbase. |
175 | char *config_filename (const char *name, const char *dflt = 0); |
179 | char *config_filename (const char *name, const char *dflt = 0); |
176 | |
180 | |
177 | void print (); |
181 | void print (); |