# This file was automatically generated by bifcl from bro.bif.

global length: function(v: any): count;
global same_object: function(o1: any, o2: any): bool;
global clear_table: function(v: any): any;
global cat: function(va_args: any): string;
global cat_sep: function(va_args: any): string;
global fmt: function(va_args: any): string;
global type_name: function(t: any): string;
global to_int: function(str: string): int;
global int_to_count: function(n: int): count;
global double_to_count: function(d: double): count;
global to_count: function(str: string): count;
global interval_to_double: function(i: interval): double;
global time_to_double: function(t: time): double;
global double_to_time: function(d: double): time;
global double_to_interval: function(d: double): interval;
global addr_to_count: function(a: addr): count;
global port_to_count: function(p: port): count;
global count_to_port: function(c: count, t: transport_proto): port;
global floor: function(d: double): double;
global to_addr: function(ip: string): addr;
global raw_bytes_to_v4_addr: function(b: string): addr;
global to_net: function(a: addr): net;
global net_to_subnet: function(a: net): subnet;
global to_port: function(num: count, proto: transport_proto): port;
global mask_addr: function(a: addr, top_bits_to_keep: count): addr;
global remask_addr: function(a1: addr, a2: addr, top_bits_from_a1: count): addr;
global is_tcp_port: function(p: port): bool;
global is_udp_port: function(p: port): bool;
global is_icmp_port: function(p: port): bool;
global reading_live_traffic: function(): bool;
global reading_traces: function(): bool;
global open: function(f: string): file;
global open_for_append: function(f: string): file;
global close: function(f: file): bool;
global write_file: function(f: file, data: string): bool;
global set_buf: function(f: file, buffered: bool): any;
global flush_all: function(): bool;
global mkdir: function(f: string): bool;
global active_file: function(f: file): bool;
global active_connection: function(id: conn_id): bool;
global connection_record: function(cid: conn_id): connection;
global get_conn_transport_proto: function(cid: conn_id): transport_proto;
global get_port_transport_proto: function(p: port): transport_proto;
global current_time: function(): time;
global network_time: function(): time;
global getenv: function(var: string): string;
global sqrt: function(x: double): double;
global exp: function(d: double): double;
global ln: function(d: double): double;
global log10: function(d: double): double;
global exit: function(): int;
global terminate: function(): bool;
global system: function(str: string): int;
global connection_exists: function(c: conn_id): bool;
global lookup_connection: function(cid: conn_id): connection;
global skip_further_processing: function(cid: conn_id): bool;
global set_record_packets: function(cid: conn_id, do_record: bool): bool;
global set_contents_file: function(cid: conn_id, direction: count, f: file): bool;
global get_contents_file: function(cid: conn_id, direction: count): file;
global get_file_name: function(f: file): string;
global set_inactivity_timeout: function(cid: conn_id, t: interval): interval;
global get_login_state: function(cid: conn_id): count;
global set_login_state: function(cid: conn_id, new_state: count): bool;
global get_orig_seq: function(cid: conn_id): count;
global get_resp_seq: function(cid: conn_id): count;
global ptr_name_to_addr: function(s: string): addr;
global addr_to_ptr_name: function(a: addr): string;
global parse_dotted_addr: function(s: string): addr;
global parse_ftp_port: function(s: string): ftp_port;
global parse_eftp_port: function(s: string): ftp_port;
global parse_ftp_pasv: function(str: string): ftp_port;
global parse_ftp_epsv: function(str: string): ftp_port;
global fmt_ftp_port: function(a: addr, p: port): string;
global decode_netbios_name: function(name: string): string;
global skip_http_entity_data: function(c: connection, is_orig: bool): any;
global unescape_URI: function(URI: string): string;
global skip_smtp_data: function(c: connection): any;
global bytestring_to_hexstr: function(bytestring: string): string;
global resource_usage: function(): bro_resources;
global get_matcher_stats: function(): matcher_stats;
global val_size: function(v: any): count;
global global_sizes: function(): var_sizes;
global global_ids: function(): id_table;
global rewriting_trace: function(): bool;
global preserve_prefix: function(a: addr, width: count): any;
global preserve_subnet: function(a: subnet): any;
global preserve_net: function(a: net): any;
global anonymize_addr: function(a: addr, cl: IPAddrAnonymizationClass): addr;
global md5_hash: function(va_args: any): string;
global md5_hmac: function(va_args: any): string;
global rand: function(max: count): count;
global srand: function(seed: count): any;
global decode_base64: function(s: string): string;
global uuid_to_string: function(uuid: string): string;
global merge_pattern: function(p1: pattern, p2: pattern): pattern;
global convert_for_pattern: function(s: string): string;
global string_to_pattern: function(s: string, convert: bool): pattern;
global precompile_pcap_filter: function(id: PcapFilterID, s: string): bool;
global install_pcap_filter: function(id: PcapFilterID): bool;
global pcap_error: function(): string;
global install_src_addr_filter: function(ip: addr, tcp_flags: count, prob: double) : bool;
global install_src_net_filter: function(snet: subnet, tcp_flags: count, prob: double) : bool;
global uninstall_src_addr_filter: function(ip: addr) : bool;
global uninstall_src_net_filter: function(snet: subnet) : bool;
global install_dst_addr_filter: function(ip: addr, tcp_flags: count, prob: double) : bool;
global install_dst_net_filter: function(snet: subnet, tcp_flags: count, prob: double) : bool;
global uninstall_dst_addr_filter: function(ip: addr) : bool;
global uninstall_dst_net_filter: function(snet: subnet) : bool;
global checkpoint_state: function() : bool;
global dump_config: function() : bool;
global rescan_state: function() : bool;
global capture_events: function(filename: string) : bool;
global capture_state_updates: function(filename: string) : bool;
global connect: function(ip: addr, p: port, our_class: string, retry: interval, ssl: bool) : count;
global request_remote_events: function(p: event_peer, handlers: pattern) : bool;
global request_remote_sync: function(p: event_peer, auth: bool) : bool;
global set_accept_state: function(p: event_peer, accept: bool) : bool;
global set_compression_level: function(p: event_peer, level: count) : bool;
global listen: function(ip: addr, p: port, ssl: bool) : bool;
global is_remote_event: function() : bool;
global send_state: function(p: event_peer) : bool;
global send_id: function(p: event_peer, id: string) : bool;
global terminate_communication: function() : bool;
global complete_handshake: function(p: event_peer) : bool;
global send_ping: function(p: event_peer, seq: count) : bool;
global send_current_packet: function(p: event_peer) : bool;
global do_profiling: function() : bool;
global get_event_peer: function() : event_peer;
global get_local_event_peer: function() : event_peer;
global send_capture_filter: function(p: event_peer, s: string) : bool;
global make_connection_persistent: function(c: connection) : bool;
global is_local_interface: function(ip: addr) : bool;
global dump_current_packet: function(file_name: string) : bool;
global get_current_packet: function() : pcap_packet;
global dump_packet: function(pkt: pcap_packet, file_name: string) : bool;
global resize: function(aggr: any, newsize: count) : count;
global any_set: function(v: any) : bool;
global all_set: function(v: any) : bool;
global sort: function(va_args: any) : any;
global order: function(va_args: any) : index_vec;
global generate_idmef: function(src_ip: addr, src_port: port, dst_ip: addr, dst_port: port) : bool;
global dump_rule_stats: function(f: file): bool;
global bro_is_terminating: function(): bool;
global rotate_file: function(f: file): rotate_info;
global rotate_file_by_name: function(f: string): rotate_info;
global calc_next_rotate: function(i: interval) : interval;
global file_size: function(f: string) : double;
global strftime: function(fmt: string, d: time) : string;
global match_signatures: function(c: connection, pattern_type: int, s: string, bol: bool, eol: bool, from_orig: bool, clear: bool) : bool;
global gethostname: function() : string;
global lookup_addr: function(host: addr) : string;
global lookup_hostname: function(host: string) : addr_set;
global suspend_processing: function() : any;
global continue_processing: function() : any;
global expect_connection: function(orig: addr, resp: addr, resp_p: port, analyzer: count, tout: interval) : bool;
global disable_analyzer: function(cid: conn_id, aid: count) : bool;
global analyzer_name: function(aid: count) : string;
global lookup_ID: function(id: string) : any;
global suspend_state_updates: function() : any;
global resume_state_updates: function() : any;
global current_analyzer: function() : count;
global getpid: function() : count;
global syslog: function(s: string): any;
global lookup_location: function(a: addr) : geo_location;
global is_external_connection: function(c: connection) : bool;
global disable_print_hook: function(f: file): any;
global identify_data: function(data: string, return_mime: bool): string;
global enable_event_group: function(group: string) : any;
global disable_event_group: function(group: string) : any;
