Merge remote-tracking branch 'origin/topic/awelzel/mmdb-fix-and-tests'

* origin/topic/awelzel/mmdb-fix-and-tests:
  base/frameworks/spicy: Do not load base/misc/version
  btest/core/mmdb: Basic lookup_autonomous_system / lookup_location tests
  btest/files: Add mmdb testing databases and generator code
  zeek.bif: Switch mmdb stale check to network_time
  Fix mmdb pointer destruction

(cherry picked from commit 44b67894ac)
This commit is contained in:
Arne Welzel 2023-10-24 13:57:03 +02:00 committed by Tim Wojtulewicz
parent 5c68e43687
commit ffc281703f
24 changed files with 329 additions and 76 deletions

View file

@ -1,5 +1,3 @@
@load base/misc/version
# doc-common-start
module Spicy;

View file

@ -1107,6 +1107,11 @@ type geo_autonomous_system: record {
## The directory containing MaxMind DB (.mmdb) files to use for GeoIP support.
const mmdb_dir: string = "" &redef;
## Sets the interval for MaxMind DB file staleness checks. When Zeek detects a
## change in inode or modification time, the database is re-opened. Setting
## a negative interval disables staleness checks.
const mmdb_stale_check_interval: interval = 5min &redef;
## Computed entropy values. The record captures a number of measures that are
## computed in parallel. See `A Pseudorandom Number Sequence Test Program
## <http://www.fourmilab.ch/random>`_ for more information, Zeek uses the same