… | |
… | |
137 | u8 icmp_type; // the icmp type for the icmp-protocol |
137 | u8 icmp_type; // the icmp type for the icmp-protocol |
138 | #endif |
138 | #endif |
139 | |
139 | |
140 | char *script_if_up; |
140 | char *script_if_up; |
141 | char *script_node_up; |
141 | char *script_node_up; |
|
|
142 | char *script_node_change; |
142 | char *script_node_down; |
143 | char *script_node_down; |
143 | char *pidfilename; |
144 | char *pidfilename; |
144 | |
145 | |
145 | #if ENABLE_HTTP_PROXY |
146 | #if ENABLE_HTTP_PROXY |
146 | char *proxy_auth; // login:password |
147 | char *proxy_auth; // login:password |
… | |
… | |
148 | u16 proxy_port; // the proxy port, e.g. 3128 |
149 | u16 proxy_port; // the proxy port, e.g. 3128 |
149 | #endif |
150 | #endif |
150 | |
151 | |
151 | #if ENABLE_DNS |
152 | #if ENABLE_DNS |
152 | char *dns_forw_host; |
153 | char *dns_forw_host; |
|
|
154 | bool dns_case_preserving; |
153 | u16 dns_forw_port; |
155 | u16 dns_forw_port; |
154 | float dns_timeout_factor; |
156 | float dns_timeout_factor; |
155 | float dns_send_interval; |
157 | float dns_send_interval; |
156 | float dns_overlap_factor; |
158 | float dns_overlap_factor; |
157 | int dns_max_outstanding; |
159 | int dns_max_outstanding; |
… | |
… | |
161 | void cleanup (); |
163 | void cleanup (); |
162 | void clear (); |
164 | void clear (); |
163 | |
165 | |
164 | // create a filename from string, replacing %s by the nodename |
166 | // create a filename from string, replacing %s by the nodename |
165 | // and using relative paths under confbase. |
167 | // and using relative paths under confbase. |
166 | char *config_filename (const char *name, const char *dflt); |
168 | char *config_filename (const char *name, const char *dflt = 0); |
167 | |
169 | |
168 | void print (); |
170 | void print (); |
169 | |
171 | |
170 | configuration (); |
172 | configuration (); |
171 | ~configuration (); |
173 | ~configuration (); |
… | |
… | |
181 | int argc; |
183 | int argc; |
182 | char **argv; |
184 | char **argv; |
183 | |
185 | |
184 | configuration_parser (configuration &conf, bool need_keys, int argc, char **argv); |
186 | configuration_parser (configuration &conf, bool need_keys, int argc, char **argv); |
185 | |
187 | |
|
|
188 | void parse_file (const char *fname); |
186 | const char *parse_line (char *line); |
189 | const char *parse_line (char *line); |
187 | void parse_argv (); |
190 | void parse_argv (); |
188 | }; |
191 | }; |
189 | |
192 | |
190 | extern struct configuration conf; |
193 | extern struct configuration conf; |