Branch data Line data Source code
1 : : // $Id: NetVar.cc 6887 2009-08-20 05:17:33Z vern $
2 : : //
3 : : // See the file "COPYING" in the main distribution directory for copyright.
4 : :
5 : : #include "config.h"
6 : :
7 : : #include "Var.h"
8 : : #include "NetVar.h"
9 : :
10 : : RecordType* conn_id;
11 : : RecordType* endpoint;
12 : : RecordType* endpoint_stats;
13 : : RecordType* connection_type;
14 : : RecordType* icmp_conn;
15 : : RecordType* icmp_context;
16 : : RecordType* SYN_packet;
17 : : RecordType* pcap_packet;
18 : : RecordType* signature_state;
19 : : EnumType* transport_proto;
20 : : TableType* string_set;
21 : :
22 : : RecordType* net_stats;
23 : :
24 : : int watchdog_interval;
25 : : double heartbeat_interval;
26 : :
27 : : int max_timer_expires;
28 : : int max_remote_events_processed;
29 : :
30 : : int ignore_checksums;
31 : : int partial_connection_ok;
32 : : int tcp_SYN_ack_ok;
33 : : int tcp_match_undelivered;
34 : :
35 : : int encap_hdr_size;
36 : : int udp_tunnel_port;
37 : :
38 : : double frag_timeout;
39 : :
40 : : double tcp_SYN_timeout;
41 : : double tcp_session_timer;
42 : : double tcp_connection_linger;
43 : : double tcp_attempt_delay;
44 : : double tcp_close_delay;
45 : : double tcp_reset_delay;
46 : : double tcp_partial_close_delay;
47 : :
48 : : int tcp_max_initial_window;
49 : : int tcp_max_above_hole_without_any_acks;
50 : : int tcp_excessive_data_without_further_acks;
51 : :
52 : : int ssl_compare_cipherspecs;
53 : : int ssl_analyze_certificates;
54 : : int ssl_store_certificates;
55 : : int ssl_verify_certificates;
56 : : int ssl_store_key_material;
57 : : int ssl_max_cipherspec_size;
58 : : StringVal* ssl_store_cert_path;
59 : : StringVal* x509_trusted_cert_path;
60 : : TableType* cipher_suites_list;
61 : : RecordType* x509_type;
62 : :
63 : : double non_analyzed_lifetime;
64 : : double tcp_inactivity_timeout;
65 : : double udp_inactivity_timeout;
66 : : double icmp_inactivity_timeout;
67 : :
68 : : int tcp_storm_thresh;
69 : : double tcp_storm_interarrival_thresh;
70 : :
71 : : TableVal* tcp_reassembler_ports_orig;
72 : : TableVal* tcp_reassembler_ports_resp;
73 : :
74 : : TableVal* tcp_content_delivery_ports_orig;
75 : : TableVal* tcp_content_delivery_ports_resp;
76 : : bool tcp_content_deliver_all_orig;
77 : : bool tcp_content_deliver_all_resp;
78 : :
79 : : TableVal* udp_content_delivery_ports_orig;
80 : : TableVal* udp_content_delivery_ports_resp;
81 : : bool udp_content_deliver_all_orig;
82 : : bool udp_content_deliver_all_resp;
83 : :
84 : : double dns_session_timeout;
85 : : double ntp_session_timeout;
86 : : double rpc_timeout;
87 : :
88 : : ListVal* skip_authentication;
89 : : ListVal* direct_login_prompts;
90 : : ListVal* login_prompts;
91 : : ListVal* login_non_failure_msgs;
92 : : ListVal* login_failure_msgs;
93 : : ListVal* login_success_msgs;
94 : : ListVal* login_timeouts;
95 : :
96 : : int mime_segment_length;
97 : : int mime_segment_overlap_length;
98 : : RecordType* mime_header_rec;
99 : : TableType* mime_header_list;
100 : :
101 : : int http_entity_data_delivery_size;
102 : : RecordType* http_stats_rec;
103 : : RecordType* http_message_stat;
104 : : int truncate_http_URI;
105 : :
106 : : int pm_request;
107 : : RecordType* pm_mapping;
108 : : TableType* pm_mappings;
109 : : RecordType* pm_port_request;
110 : : RecordType* pm_callit_request;
111 : :
112 : : RecordType* nfs3_attrs;
113 : : RecordType* nfs3_opt_attrs;
114 : : RecordType* nfs3_lookup_args;
115 : : RecordType* nfs3_lookup_reply;
116 : : RecordType* nfs3_fsstat;
117 : :
118 : : RecordType* ntp_msg;
119 : :
120 : : TableVal* samba_cmds;
121 : : RecordType* smb_hdr;
122 : : RecordType* smb_trans;
123 : : RecordType* smb_trans_data;
124 : : RecordType* smb_tree_connect;
125 : : TableType* smb_negotiate;
126 : :
127 : : RecordType* geo_location;
128 : :
129 : : TableType* dhcp_router_list;
130 : : RecordType* dhcp_msg;
131 : :
132 : : RecordType* dns_msg;
133 : : RecordType* dns_answer;
134 : : RecordType* dns_soa;
135 : : RecordType* dns_edns_additional;
136 : : RecordType* dns_tsig_additional;
137 : : TableVal* dns_skip_auth;
138 : : TableVal* dns_skip_addl;
139 : : int dns_skip_all_auth;
140 : : int dns_skip_all_addl;
141 : : int dns_max_queries;
142 : :
143 : : double stp_delta;
144 : : double stp_idle_min;
145 : : TableVal* stp_skip_src;
146 : :
147 : : double interconn_min_interarrival;
148 : : double interconn_max_interarrival;
149 : : int interconn_max_keystroke_pkt_size;
150 : : int interconn_default_pkt_size;
151 : : double interconn_stat_period;
152 : : double interconn_stat_backoff;
153 : : RecordType* interconn_endp_stats;
154 : :
155 : : double backdoor_stat_period;
156 : : double backdoor_stat_backoff;
157 : :
158 : : RecordType* backdoor_endp_stats;
159 : :
160 : : RecordType* software;
161 : : RecordType* software_version;
162 : : RecordType* OS_version;
163 : : EnumType* OS_version_inference;
164 : : TableVal* generate_OS_version_event;
165 : :
166 : : double table_expire_interval;
167 : : double table_expire_delay;
168 : : int table_incremental_step;
169 : :
170 : : RecordType* packet_type;
171 : :
172 : : double packet_sort_window;
173 : :
174 : : double connection_status_update_interval;
175 : :
176 : : StringVal* state_dir;
177 : : double state_write_delay;
178 : :
179 : : int orig_addr_anonymization, resp_addr_anonymization;
180 : : int other_addr_anonymization;
181 : : TableVal* preserve_orig_addr;
182 : : TableVal* preserve_resp_addr;
183 : : TableVal* preserve_other_addr;
184 : :
185 : : double log_rotate_interval;
186 : : double log_max_size;
187 : : RecordType* rotate_info;
188 : : StringVal* log_encryption_key;
189 : : StringVal* log_rotate_base_time;
190 : :
191 : : StringVal* peer_description;
192 : : RecordType* peer;
193 : : int forward_remote_state_changes;
194 : : int forward_remote_events;
195 : : int remote_check_sync_consistency;
196 : :
197 : : StringVal* ssl_ca_certificate;
198 : : StringVal* ssl_private_key;
199 : : StringVal* ssl_passphrase;
200 : :
201 : : StringVal* x509_crl_file;
202 : : TableType* x509_extension;
203 : : TableType* SSL_sessionID;
204 : :
205 : : Val* profiling_file;
206 : : double profiling_interval;
207 : : int expensive_profiling_multiple;
208 : : int segment_profiling;
209 : : int pkt_profile_mode;
210 : : double pkt_profile_freq;
211 : : Val* pkt_profile_file;
212 : :
213 : : int load_sample_freq;
214 : :
215 : : double gap_report_freq;
216 : : RecordType* gap_info;
217 : :
218 : : int packet_filter_default;
219 : :
220 : : int sig_max_group_size;
221 : :
222 : : int enable_syslog;
223 : :
224 : : int use_connection_compressor;
225 : : int cc_handle_resets;
226 : : int cc_handle_only_syns;
227 : : int cc_instantiate_on_data;
228 : :
229 : : TableType* irc_join_list;
230 : : RecordType* irc_join_info;
231 : : TableVal* irc_servers;
232 : :
233 : : TableVal* dpd_config;
234 : : int dpd_reassemble_first_packets;
235 : : int dpd_buffer_size;
236 : : int dpd_match_only_beginning;
237 : : int dpd_ignore_ports;
238 : :
239 : : TableVal* likely_server_ports;
240 : :
241 : : double remote_trace_sync_interval;
242 : : int remote_trace_sync_peers;
243 : :
244 : : int check_for_unused_event_handlers;
245 : : int dump_used_event_handlers;
246 : :
247 : : int suppress_local_output;
248 : :
249 : : double timer_mgr_inactivity_timeout;
250 : : double expected_connection_timeout;
251 : :
252 : : int time_machine_profiling;
253 : :
254 : : StringVal* trace_output_file;
255 : :
256 : : int record_all_packets;
257 : :
258 : : RecordType* script_id;
259 : : TableType* id_table;
260 : :
261 : : #include "const.bif.netvar_def"
262 : : #include "event.bif.netvar_def"
263 : :
264 : 3 : void init_event_handlers()
265 : : {
266 : : #include "event.bif.netvar_init"
267 : 3 : }
268 : :
269 : 2 : void init_general_global_var()
270 : : {
271 : 2 : table_expire_interval = opt_internal_double("table_expire_interval");
272 : 2 : table_expire_delay = opt_internal_double("table_expire_delay");
273 : 2 : table_incremental_step = opt_internal_int("table_incremental_step");
274 : :
275 : 2 : state_dir = internal_val("state_dir")->AsStringVal();
276 : 2 : state_write_delay = opt_internal_double("state_write_delay");
277 : :
278 : 2 : log_rotate_interval = opt_internal_double("log_rotate_interval");
279 : 2 : log_max_size = opt_internal_double("log_max_size");
280 : 2 : rotate_info = internal_type("rotate_info")->AsRecordType();
281 : 2 : log_encryption_key = opt_internal_string("log_encryption_key");
282 : 2 : log_rotate_base_time = opt_internal_string("log_rotate_base_time");
283 : :
284 : : peer_description =
285 : 2 : internal_val("peer_description")->AsStringVal();
286 : 2 : peer = internal_type("event_peer")->AsRecordType();
287 : : forward_remote_state_changes =
288 : 2 : opt_internal_int("forward_remote_state_changes");
289 : 2 : forward_remote_events = opt_internal_int("forward_remote_events");
290 : : remote_check_sync_consistency =
291 : 2 : opt_internal_int("remote_check_sync_consistency");
292 : :
293 : 2 : ssl_ca_certificate = internal_val("ssl_ca_certificate")->AsStringVal();
294 : 2 : ssl_private_key = internal_val("ssl_private_key")->AsStringVal();
295 : 2 : ssl_passphrase = internal_val("ssl_passphrase")->AsStringVal();
296 : :
297 : 2 : packet_filter_default = opt_internal_int("packet_filter_default");
298 : :
299 : 2 : sig_max_group_size = opt_internal_int("sig_max_group_size");
300 : 2 : enable_syslog = opt_internal_int("enable_syslog");
301 : :
302 : : check_for_unused_event_handlers =
303 : 2 : opt_internal_int("check_for_unused_event_handlers");
304 : : dump_used_event_handlers =
305 : 2 : opt_internal_int("dump_used_event_handlers");
306 : :
307 : 2 : suppress_local_output = opt_internal_int("suppress_local_output");
308 : :
309 : 2 : trace_output_file = internal_val("trace_output_file")->AsStringVal();
310 : :
311 : 2 : record_all_packets = opt_internal_int("record_all_packets");
312 : 2 : }
313 : :
314 : 1 : void init_net_var()
315 : : {
316 : : #include "const.bif.netvar_init"
317 : :
318 : 1 : conn_id = internal_type("conn_id")->AsRecordType();
319 : 1 : endpoint = internal_type("endpoint")->AsRecordType();
320 : 1 : endpoint_stats = internal_type("endpoint_stats")->AsRecordType();
321 : 1 : connection_type = internal_type("connection")->AsRecordType();
322 : 1 : icmp_conn = internal_type("icmp_conn")->AsRecordType();
323 : 1 : icmp_context = internal_type("icmp_context")->AsRecordType();
324 : 1 : signature_state = internal_type("signature_state")->AsRecordType();
325 : 1 : SYN_packet = internal_type("SYN_packet")->AsRecordType();
326 : 1 : pcap_packet = internal_type("pcap_packet")->AsRecordType();
327 : 1 : transport_proto = internal_type("transport_proto")->AsEnumType();
328 : 1 : string_set = internal_type("string_set")->AsTableType();
329 : :
330 : 1 : ignore_checksums = opt_internal_int("ignore_checksums");
331 : 1 : partial_connection_ok = opt_internal_int("partial_connection_ok");
332 : 1 : tcp_SYN_ack_ok = opt_internal_int("tcp_SYN_ack_ok");
333 : 1 : tcp_match_undelivered = opt_internal_int("tcp_match_undelivered");
334 : :
335 : 1 : encap_hdr_size = opt_internal_int("encap_hdr_size");
336 : :
337 : 1 : udp_tunnel_port = opt_internal_int("udp_tunnel_port") & ~UDP_PORT_MASK;
338 : :
339 : 1 : frag_timeout = opt_internal_double("frag_timeout");
340 : :
341 : 1 : tcp_SYN_timeout = opt_internal_double("tcp_SYN_timeout");
342 : 1 : tcp_session_timer = opt_internal_double("tcp_session_timer");
343 : 1 : tcp_connection_linger = opt_internal_double("tcp_connection_linger");
344 : 1 : tcp_attempt_delay = opt_internal_double("tcp_attempt_delay");
345 : 1 : tcp_close_delay = opt_internal_double("tcp_close_delay");
346 : 1 : tcp_reset_delay = opt_internal_double("tcp_reset_delay");
347 : 1 : tcp_partial_close_delay = opt_internal_double("tcp_partial_close_delay");
348 : :
349 : 1 : tcp_max_initial_window = opt_internal_int("tcp_max_initial_window");
350 : : tcp_max_above_hole_without_any_acks =
351 : 1 : opt_internal_int("tcp_max_above_hole_without_any_acks");
352 : : tcp_excessive_data_without_further_acks =
353 : 1 : opt_internal_int("tcp_excessive_data_without_further_acks");
354 : :
355 : 1 : ssl_compare_cipherspecs = opt_internal_int("ssl_compare_cipherspecs");
356 : 1 : ssl_analyze_certificates = opt_internal_int("ssl_analyze_certificates");
357 : 1 : ssl_store_certificates = opt_internal_int("ssl_store_certificates");
358 : 1 : ssl_verify_certificates = opt_internal_int("ssl_verify_certificates");
359 : 1 : ssl_store_key_material = opt_internal_int("ssl_store_key_material");
360 : 1 : ssl_max_cipherspec_size = opt_internal_int("ssl_max_cipherspec_size");
361 : :
362 : 1 : x509_trusted_cert_path = opt_internal_string("X509_trusted_cert_path");
363 : 1 : ssl_store_cert_path = opt_internal_string("ssl_store_cert_path");
364 : 1 : x509_type = internal_type("X509")->AsRecordType();
365 : 1 : cipher_suites_list = internal_type("cipher_suites_list")->AsTableType();
366 : 1 : x509_crl_file = opt_internal_string("X509_crl_file");
367 : 1 : x509_extension = internal_type("X509_extension")->AsTableType();
368 : 1 : SSL_sessionID = internal_type("SSL_sessionID")->AsTableType();
369 : :
370 : 1 : non_analyzed_lifetime = opt_internal_double("non_analyzed_lifetime");
371 : 1 : tcp_inactivity_timeout = opt_internal_double("tcp_inactivity_timeout");
372 : 1 : udp_inactivity_timeout = opt_internal_double("udp_inactivity_timeout");
373 : 1 : icmp_inactivity_timeout = opt_internal_double("icmp_inactivity_timeout");
374 : :
375 : 1 : tcp_storm_thresh = opt_internal_int("tcp_storm_thresh");
376 : : tcp_storm_interarrival_thresh =
377 : 1 : opt_internal_double("tcp_storm_interarrival_thresh");
378 : :
379 : : tcp_reassembler_ports_orig =
380 : 1 : internal_val("tcp_reassembler_ports_orig")->AsTableVal();
381 : : tcp_reassembler_ports_resp =
382 : 1 : internal_val("tcp_reassembler_ports_resp")->AsTableVal();
383 : :
384 : : tcp_content_delivery_ports_orig =
385 : 1 : internal_val("tcp_content_delivery_ports_orig")->AsTableVal();
386 : : tcp_content_delivery_ports_resp =
387 : 1 : internal_val("tcp_content_delivery_ports_resp")->AsTableVal();
388 : : tcp_content_deliver_all_orig =
389 : 1 : bool(internal_val("tcp_content_deliver_all_orig")->AsBool());
390 : : tcp_content_deliver_all_resp =
391 : 1 : bool(internal_val("tcp_content_deliver_all_resp")->AsBool());
392 : :
393 : : udp_content_delivery_ports_orig =
394 : 1 : internal_val("udp_content_delivery_ports_orig")->AsTableVal();
395 : : udp_content_delivery_ports_resp =
396 : 1 : internal_val("udp_content_delivery_ports_resp")->AsTableVal();
397 : : udp_content_deliver_all_orig =
398 : 1 : bool(internal_val("udp_content_deliver_all_orig")->AsBool());
399 : : udp_content_deliver_all_resp =
400 : 1 : bool(internal_val("udp_content_deliver_all_resp")->AsBool());
401 : :
402 : 1 : dns_session_timeout = opt_internal_double("dns_session_timeout");
403 : 1 : ntp_session_timeout = opt_internal_double("ntp_session_timeout");
404 : 1 : rpc_timeout = opt_internal_double("rpc_timeout");
405 : :
406 : 1 : net_stats = internal_type("net_stats")->AsRecordType();
407 : :
408 : 1 : watchdog_interval = int(opt_internal_double("watchdog_interval"));
409 : 1 : heartbeat_interval = opt_internal_double("heartbeat_interval");
410 : :
411 : 1 : max_timer_expires = opt_internal_int("max_timer_expires");
412 : : max_remote_events_processed =
413 : 1 : opt_internal_int("max_remote_events_processed");
414 : :
415 : 1 : skip_authentication = internal_list_val("skip_authentication");
416 : 1 : direct_login_prompts = internal_list_val("direct_login_prompts");
417 : 1 : login_prompts = internal_list_val("login_prompts");
418 : 1 : login_non_failure_msgs = internal_list_val("login_non_failure_msgs");
419 : 1 : login_failure_msgs = internal_list_val("login_failure_msgs");
420 : 1 : login_success_msgs = internal_list_val("login_success_msgs");
421 : 1 : login_timeouts = internal_list_val("login_timeouts");
422 : :
423 : 1 : mime_segment_length = opt_internal_int("mime_segment_length");
424 : 1 : mime_segment_overlap_length = opt_internal_int("mime_segment_overlap_length");
425 : 1 : mime_header_rec = internal_type("mime_header_rec")->AsRecordType();
426 : 1 : mime_header_list = internal_type("mime_header_list")->AsTableType();
427 : :
428 : 1 : http_entity_data_delivery_size = opt_internal_int("http_entity_data_delivery_size");
429 : 1 : http_stats_rec = internal_type("http_stats_rec")->AsRecordType();
430 : 1 : http_message_stat = internal_type("http_message_stat")->AsRecordType();
431 : 1 : truncate_http_URI = opt_internal_int("truncate_http_URI");
432 : :
433 : : pm_request = pm_request_null || pm_request_set ||
434 : : pm_request_unset || pm_request_getport ||
435 : : pm_request_dump || pm_request_callit ||
436 : : pm_attempt_null || pm_attempt_set ||
437 : : pm_attempt_unset || pm_attempt_getport ||
438 : : pm_attempt_dump || pm_attempt_callit ||
439 [ + - + - ]: 1 : pm_bad_port;
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ - + ]
440 : :
441 : 1 : pm_mapping = internal_type("pm_mapping")->AsRecordType();
442 : 1 : pm_mappings = internal_type("pm_mappings")->AsTableType();
443 : 1 : pm_port_request = internal_type("pm_port_request")->AsRecordType();
444 : 1 : pm_callit_request = internal_type("pm_callit_request")->AsRecordType();
445 : :
446 : 1 : nfs3_attrs = internal_type("nfs3_attrs")->AsRecordType();
447 : 1 : nfs3_opt_attrs = internal_type("nfs3_opt_attrs")->AsRecordType();
448 : 1 : nfs3_lookup_args = internal_type("nfs3_lookup_args")->AsRecordType();
449 : 1 : nfs3_lookup_reply = internal_type("nfs3_lookup_reply")->AsRecordType();
450 : 1 : nfs3_fsstat = internal_type("nfs3_fsstat")->AsRecordType();
451 : :
452 : 1 : ntp_msg = internal_type("ntp_msg")->AsRecordType();
453 : :
454 : 1 : samba_cmds = internal_val("samba_cmds")->AsTableVal();
455 : 1 : smb_hdr = internal_type("smb_hdr")->AsRecordType();
456 : 1 : smb_trans = internal_type("smb_trans")->AsRecordType();
457 : 1 : smb_trans_data = internal_type("smb_trans_data")->AsRecordType();
458 : 1 : smb_tree_connect = internal_type("smb_tree_connect")->AsRecordType();
459 : 1 : smb_negotiate = internal_type("smb_negotiate")->AsTableType();
460 : :
461 : 1 : geo_location = internal_type("geo_location")->AsRecordType();
462 : :
463 : 1 : dhcp_router_list = internal_type("dhcp_router_list")->AsTableType();
464 : 1 : dhcp_msg = internal_type("dhcp_msg")->AsRecordType();
465 : :
466 : 1 : dns_msg = internal_type("dns_msg")->AsRecordType();
467 : 1 : dns_answer = internal_type("dns_answer")->AsRecordType();
468 : 1 : dns_soa = internal_type("dns_soa")->AsRecordType();
469 : : dns_edns_additional =
470 : 1 : internal_type("dns_edns_additional")->AsRecordType();
471 : : dns_tsig_additional =
472 : 1 : internal_type("dns_tsig_additional")->AsRecordType();
473 : :
474 : 1 : dns_skip_auth = internal_val("dns_skip_auth")->AsTableVal();
475 : 1 : dns_skip_addl = internal_val("dns_skip_addl")->AsTableVal();
476 : 1 : dns_skip_all_auth = opt_internal_int("dns_skip_all_auth");
477 : 1 : dns_skip_all_addl = opt_internal_int("dns_skip_all_addl");
478 : 1 : dns_max_queries = opt_internal_int("dns_max_queries");
479 : :
480 : 1 : stp_delta = opt_internal_double("stp_delta");
481 : 1 : stp_idle_min = opt_internal_double("stp_idle_min");
482 : 1 : stp_skip_src = internal_val("stp_skip_src")->AsTableVal();
483 : :
484 : 1 : interconn_min_interarrival = opt_internal_double("interconn_min_interarrival");
485 : 1 : interconn_max_interarrival = opt_internal_double("interconn_max_interarrival");
486 : 1 : interconn_max_keystroke_pkt_size = opt_internal_int("interconn_max_keystroke_pkt_size");
487 : 1 : interconn_default_pkt_size = opt_internal_int("interconn_default_pkt_size");
488 : 1 : interconn_stat_period = opt_internal_double("interconn_stat_period");
489 : 1 : interconn_stat_backoff = opt_internal_double("interconn_stat_backoff");
490 : 1 : interconn_endp_stats = internal_type("interconn_endp_stats")->AsRecordType();
491 : :
492 : 1 : backdoor_stat_period = opt_internal_double("backdoor_stat_period");
493 : 1 : backdoor_stat_backoff = opt_internal_double("backdoor_stat_backoff");
494 : 1 : backdoor_endp_stats = internal_type("backdoor_endp_stats")->AsRecordType();
495 : :
496 : 1 : software = internal_type("software")->AsRecordType();
497 : 1 : software_version = internal_type("software_version")->AsRecordType();
498 : 1 : OS_version = internal_type("OS_version")->AsRecordType();
499 : 1 : OS_version_inference = internal_type("OS_version_inference")->AsEnumType();
500 : : generate_OS_version_event =
501 : 1 : opt_internal_table("generate_OS_version_event");
502 : :
503 : 1 : packet_type = internal_type("packet")->AsRecordType();
504 : :
505 : 1 : packet_sort_window = opt_internal_double("packet_sort_window");
506 : :
507 : 1 : orig_addr_anonymization = opt_internal_int("orig_addr_anonymization");
508 : 1 : resp_addr_anonymization = opt_internal_int("resp_addr_anonymization");
509 : 1 : other_addr_anonymization = opt_internal_int("other_addr_anonymization");
510 : :
511 : 1 : preserve_orig_addr = opt_internal_table("preserve_orig_addr");
512 : 1 : preserve_resp_addr = opt_internal_table("preserve_resp_addr");
513 : 1 : preserve_other_addr = opt_internal_table("preserve_other_addr");
514 : :
515 : : connection_status_update_interval =
516 : 1 : opt_internal_double("connection_status_update_interval");
517 : :
518 : 1 : profiling_file = internal_val("profiling_file");
519 : : expensive_profiling_multiple =
520 : 1 : opt_internal_int("expensive_profiling_multiple");
521 : 1 : profiling_interval = opt_internal_double("profiling_interval");
522 : 1 : segment_profiling = opt_internal_int("segment_profiling");
523 : :
524 : 1 : pkt_profile_mode = opt_internal_int("pkt_profile_mode");
525 : 1 : pkt_profile_freq = opt_internal_double("pkt_profile_freq");
526 : 1 : pkt_profile_file = opt_internal_val("pkt_profile_file");
527 : :
528 : 1 : load_sample_freq = opt_internal_int("load_sample_freq");
529 : :
530 : 1 : gap_report_freq = opt_internal_double("gap_report_freq");
531 : :
532 : : use_connection_compressor =
533 : 1 : opt_internal_int("use_connection_compressor");
534 : 1 : cc_handle_resets = opt_internal_int("cc_handle_resets");
535 : 1 : cc_handle_only_syns = opt_internal_int("cc_handle_only_syns");
536 : 1 : cc_instantiate_on_data = opt_internal_int("cc_instantiate_on_data");
537 : :
538 : 1 : irc_join_info = internal_type("irc_join_info")->AsRecordType();
539 : 1 : irc_join_list = internal_type("irc_join_list")->AsTableType();
540 : 1 : irc_servers = internal_val("irc_servers")->AsTableVal();
541 : :
542 : : remote_trace_sync_interval =
543 : 1 : opt_internal_double("remote_trace_sync_interval");
544 : 1 : remote_trace_sync_peers = opt_internal_int("remote_trace_sync_peers");
545 : :
546 : 1 : dpd_config = internal_val("dpd_config")->AsTableVal();
547 : : dpd_reassemble_first_packets =
548 : 1 : opt_internal_int("dpd_reassemble_first_packets");
549 : 1 : dpd_buffer_size = opt_internal_int("dpd_buffer_size");
550 : 1 : dpd_match_only_beginning = opt_internal_int("dpd_match_only_beginning");
551 : 1 : dpd_ignore_ports = opt_internal_int("dpd_ignore_ports");
552 : :
553 : 1 : likely_server_ports = internal_val("likely_server_ports")->AsTableVal();
554 : :
555 : : timer_mgr_inactivity_timeout =
556 : 1 : opt_internal_double("timer_mgr_inactivity_timeout");
557 : : expected_connection_timeout =
558 : 1 : opt_internal_double("expected_connection_timeout");
559 : 1 : time_machine_profiling = opt_internal_int("time_machine_profiling");
560 : :
561 : 1 : script_id = internal_type("script_id")->AsRecordType();
562 : 1 : id_table = internal_type("id_table")->AsTableType();
563 [ + - ][ + - ]: 7 : }
|