mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 04:28:20 +00:00
Merge remote-tracking branch 'origin/topic/awelzel/more-dns-stats'
* origin/topic/awelzel/more-dns-stats: get_dns_stats: Expose total cache size and cached text entries
This commit is contained in:
commit
22b98e16aa
8 changed files with 25 additions and 1 deletions
2
testing/btest/Baseline/bifs.get_dns_stats/out
Normal file
2
testing/btest/Baseline/bifs.get_dns_stats/out
Normal file
|
@ -0,0 +1,2 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
[requests=0, successful=0, failed=0, pending=0, cached_hosts=0, cached_addresses=0, cached_texts=0, cached_total=0]
|
8
testing/btest/bifs/get_dns_stats.test
Normal file
8
testing/btest/bifs/get_dns_stats.test
Normal file
|
@ -0,0 +1,8 @@
|
|||
# @TEST-DOC: With FAKE_DNS mode caching is disabled, so testing is difficult, invoke the bif once at least.
|
||||
# @TEST-EXEC: zeek -b %INPUT >out
|
||||
# @TEST-EXEC: btest-diff out
|
||||
|
||||
event zeek_init()
|
||||
{
|
||||
print get_dns_stats();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue