mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 13:38:19 +00:00
Support any type in bif const declaration.
Revamp of const delcaration in bifs: * Can only declare are const in the bif, but we cannot assign a value or attribute to it. One has to do this in a policy file (bro.init) * Type specification in bif is now mandatory * Support any type in bifs (previously only bools were supported). This will also help with automatic documentation generation, since all const are now defined in the policy layer and thus can be documented from there. The bif just gives the C++ layer easy access.
This commit is contained in:
parent
fe0ae22eef
commit
782f007b5c
4 changed files with 110 additions and 38 deletions
|
@ -4,37 +4,37 @@
|
|||
# byte to keep the connection alive. If ignore_keep_alive_rexmit
|
||||
# is set to T, such retransmissions will be excluded in the rexmit
|
||||
# counter in conn_stats.
|
||||
const ignore_keep_alive_rexmit = F &redef;
|
||||
const ignore_keep_alive_rexmit: bool;
|
||||
|
||||
# Skip HTTP data portions for performance considerations (the skipped
|
||||
# portion will not go through TCP reassembly).
|
||||
const skip_http_data = F &redef;
|
||||
const skip_http_data: bool;
|
||||
|
||||
# Whether the analysis engine parses IP packets encapsulated in
|
||||
# UDP tunnels. See also: udp_tunnel_port, policy/udp-tunnel.bro.
|
||||
const parse_udp_tunnels = F &redef;
|
||||
const parse_udp_tunnels: bool;
|
||||
|
||||
# Whether a commitment is required before writing the transformed
|
||||
# trace for a connection into the dump file.
|
||||
const requires_trace_commitment = F &redef;
|
||||
const requires_trace_commitment: bool;
|
||||
|
||||
# Whether IP address anonymization is enabled.
|
||||
const anonymize_ip_addr = F &redef;
|
||||
const anonymize_ip_addr: bool;
|
||||
|
||||
# Whether to omit place holder packets when rewriting.
|
||||
const omit_rewrite_place_holder = T &redef;
|
||||
const omit_rewrite_place_holder : bool ;
|
||||
|
||||
# Whether trace of various protocols is being rewritten.
|
||||
const rewriting_http_trace = F &redef;
|
||||
const rewriting_smtp_trace = F &redef;
|
||||
const rewriting_ftp_trace = F &redef;
|
||||
const rewriting_ident_trace = F &redef;
|
||||
const rewriting_finger_trace = F &redef;
|
||||
const rewriting_dns_trace = F &redef;
|
||||
const rewriting_smb_trace = F &redef;
|
||||
const rewriting_http_trace :bool;
|
||||
const rewriting_smtp_trace: bool;
|
||||
const rewriting_ftp_trace: bool;
|
||||
const rewriting_ident_trace: bool;
|
||||
const rewriting_finger_trace: bool;
|
||||
const rewriting_dns_trace: bool;
|
||||
const rewriting_smb_trace: bool;
|
||||
|
||||
# Whether we dump selected original packets to the output trace.
|
||||
const dump_selected_source_packets = F &redef;
|
||||
const dump_selected_source_packets: bool;
|
||||
|
||||
# If true, we dump original packets to the output trace *if and only if*
|
||||
# the connection is not rewritten; if false, the policy script can decide
|
||||
|
@ -42,5 +42,5 @@ const dump_selected_source_packets = F &redef;
|
|||
#
|
||||
# NOTE: DO NOT SET THIS TO TRUE WHEN ANONYMIZING A TRACE!
|
||||
# (TODO: this variable should be disabled when using '-A' option)
|
||||
const dump_original_packets_if_not_rewriting = F &redef;
|
||||
const dump_original_packets_if_not_rewriting: bool;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue