mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
17 lines
507 B
Text
17 lines
507 B
Text
# $Id: site.bro 416 2004-09-17 03:52:28Z vern $
|
|
#
|
|
# Definitions describing a site - which networks are "local"
|
|
# and "neighbors", and servers running particular services.
|
|
|
|
# Networks that are considered "local".
|
|
const local_nets: set[subnet] &redef;
|
|
|
|
# Networks that are considered "neighbors".
|
|
const neighbor_nets: set[subnet] &redef;
|
|
|
|
# Function that returns true if an address corresponds to one of
|
|
# the local networks, false if not.
|
|
function is_local_addr(a: addr): bool
|
|
{
|
|
return a in local_nets;
|
|
}
|