mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 04:58:21 +00:00
Test-suite passes.
All tests pass with one exception: some Broxygen tests are broken because dpd_config doesn't exist anymore. Need to update the mechanism for auto-documenting well-known ports.
This commit is contained in:
parent
eef4858692
commit
2be985433c
28 changed files with 84 additions and 62 deletions
|
@ -20,6 +20,9 @@ export {
|
|||
## XXX.
|
||||
global registered_ports: function(tag: Analyzer::Tag) : set[port];
|
||||
|
||||
## XXX
|
||||
global all_registered_ports: function() : table[Analyzer::Tag] of set[port];
|
||||
|
||||
## Translate an analyzer type to an ASCII string.
|
||||
##
|
||||
## atype: The analyzer tag.
|
||||
|
@ -106,6 +109,11 @@ function registered_ports(tag: Analyzer::Tag) : set[port]
|
|||
return tag in ports ? ports[tag] : set();
|
||||
}
|
||||
|
||||
function all_registered_ports(): table[Analyzer::Tag] of set[port]
|
||||
{
|
||||
return ports;
|
||||
}
|
||||
|
||||
function name(atype: Analyzer::Tag) : string
|
||||
{
|
||||
return __name(atype);
|
||||
|
|
|
@ -126,6 +126,8 @@ event bro_init() &priority=5
|
|||
{
|
||||
Log::create_stream(DNS::LOG, [$columns=Info, $ev=log_dns]);
|
||||
|
||||
Analyzer::register_for_ports(Analyzer::ANALYZER_DNS, dns_tcp_ports);
|
||||
Analyzer::register_for_ports(Analyzer::ANALYZER_DNS, dns_udp_ports);
|
||||
Analyzer::register_for_ports(Analyzer::ANALYZER_DNS_TCP_BINPAC, dns_tcp_ports);
|
||||
Analyzer::register_for_ports(Analyzer::ANALYZER_DNS_UDP_BINPAC, dns_udp_ports);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue