Merge remote-tracking branch 'zeek-as-org/as-org'

* zeek-as-org/as-org:
  Mark lookup_asn() BIF as deprecated in v6.1
  Define geo_autonomous_system record type
  Add lookup_autonomous_system() BIF that returns AS number and org
This commit is contained in:
Tim Wojtulewicz 2022-06-02 16:58:58 -07:00
commit 535a6013aa
4 changed files with 91 additions and 7 deletions

View file

@ -984,6 +984,14 @@ type geo_location: record {
longitude: double &optional; ##< Longitude.
} &log;
## GeoIP autonomous system information.
##
## .. zeek:see:: lookup_autonomous_system
type geo_autonomous_system: record {
number: count &optional; ##< The autonomous system number.
organization: string &optional; ##< Associated organization.
} &log;
## The directory containing MaxMind DB (.mmdb) files to use for GeoIP support.
const mmdb_dir: string = "" &redef;