mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
GH-234: rename Broxygen to Zeexygen along with roles/directives
* All "Broxygen" usages have been replaced in code, documentation, filenames, etc. * Sphinx roles/directives like ":bro:see" are now ":zeek:see" * The "--broxygen" command-line option is now "--zeexygen"
This commit is contained in:
parent
5ba46eaa71
commit
aebcb1415d
254 changed files with 2675 additions and 2656 deletions
|
@ -46,7 +46,7 @@ export {
|
|||
};
|
||||
|
||||
## Perform an HTTP request according to the
|
||||
## :bro:type:`ActiveHTTP::Request` record. This is an asynchronous
|
||||
## :zeek:type:`ActiveHTTP::Request` record. This is an asynchronous
|
||||
## function and must be called within a "when" statement.
|
||||
##
|
||||
## req: A record instance representing all options for an HTTP request.
|
||||
|
|
|
@ -13,7 +13,7 @@ export {
|
|||
## on the right to the originator on the left.
|
||||
global reverse_id_string: function(id: conn_id): string;
|
||||
|
||||
## Calls :bro:id:`id_string` or :bro:id:`reverse_id_string` if the
|
||||
## Calls :zeek:id:`id_string` or :zeek:id:`reverse_id_string` if the
|
||||
## second argument is T or F, respectively.
|
||||
global directed_id_string: function(id: conn_id, is_orig: bool): string;
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ module Dir;
|
|||
|
||||
export {
|
||||
## The default interval this module checks for files in directories when
|
||||
## using the :bro:see:`Dir::monitor` function.
|
||||
## using the :zeek:see:`Dir::monitor` function.
|
||||
option polling_interval = 30sec;
|
||||
|
||||
## Register a directory to monitor with a callback that is called
|
||||
|
|
|
@ -8,7 +8,7 @@ export {
|
|||
type Command: record {
|
||||
## The command line to execute. Use care to avoid injection
|
||||
## attacks (i.e., if the command uses untrusted/variable data,
|
||||
## sanitize it with :bro:see:`safe_shell_quote`).
|
||||
## sanitize it with :zeek:see:`safe_shell_quote`).
|
||||
cmd: string;
|
||||
## Provide standard input to the program as a string.
|
||||
stdin: string &default="";
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
## Returns: The distance between *a1* and *a2* in miles, or -1.0 if GeoIP data
|
||||
## is not available for either of the IP addresses.
|
||||
##
|
||||
## .. bro:see:: haversine_distance lookup_location
|
||||
## .. zeek:see:: haversine_distance lookup_location
|
||||
function haversine_distance_ip(a1: addr, a2: addr): double
|
||||
{
|
||||
local loc1 = lookup_location(a1);
|
||||
|
|
|
@ -75,7 +75,7 @@ function build_path(dir: string, file_name: string): string
|
|||
}
|
||||
|
||||
## Returns a compressed path to a file given a directory and file name.
|
||||
## See :bro:id:`build_path` and :bro:id:`compress_path`.
|
||||
## See :zeek:id:`build_path` and :zeek:id:`compress_path`.
|
||||
function build_path_compressed(dir: string, file_name: string): string
|
||||
{
|
||||
return compress_path(build_path(dir, file_name));
|
||||
|
|
|
@ -37,7 +37,7 @@ type PatternMatchResult: record {
|
|||
};
|
||||
|
||||
## Matches the given pattern against the given string, returning
|
||||
## a :bro:type:`PatternMatchResult` record.
|
||||
## a :zeek:type:`PatternMatchResult` record.
|
||||
## For example: ``match_pattern("foobar", /o*[a-k]/)`` returns
|
||||
## ``[matched=T, str=f, off=1]``, because the *first* match is for
|
||||
## zero o's followed by an [a-k], but ``match_pattern("foobar", /o+[a-k]/)``
|
||||
|
|
|
@ -22,9 +22,9 @@ export {
|
|||
option local_nets: set[subnet] = {};
|
||||
|
||||
## This is used for retrieving the subnet when using multiple entries in
|
||||
## :bro:id:`Site::local_nets`. It's populated automatically from there.
|
||||
## :zeek:id:`Site::local_nets`. It's populated automatically from there.
|
||||
## A membership query can be done with an
|
||||
## :bro:type:`addr` and the table will yield the subnet it was found
|
||||
## :zeek:type:`addr` and the table will yield the subnet it was found
|
||||
## within.
|
||||
global local_nets_table: table[subnet] of subnet = {};
|
||||
|
||||
|
@ -45,33 +45,33 @@ export {
|
|||
|
||||
## Function that returns true if an address corresponds to one of
|
||||
## the local networks, false if not.
|
||||
## The function inspects :bro:id:`Site::local_nets`.
|
||||
## The function inspects :zeek:id:`Site::local_nets`.
|
||||
global is_local_addr: function(a: addr): bool;
|
||||
|
||||
## Function that returns true if an address corresponds to one of
|
||||
## the neighbor networks, false if not.
|
||||
## The function inspects :bro:id:`Site::neighbor_nets`.
|
||||
## The function inspects :zeek:id:`Site::neighbor_nets`.
|
||||
global is_neighbor_addr: function(a: addr): bool;
|
||||
|
||||
## Function that returns true if an address corresponds to one of
|
||||
## the private/unrouted networks, false if not.
|
||||
## The function inspects :bro:id:`Site::private_address_space`.
|
||||
## The function inspects :zeek:id:`Site::private_address_space`.
|
||||
global is_private_addr: function(a: addr): bool;
|
||||
|
||||
## Function that returns true if a host name is within a local
|
||||
## DNS zone.
|
||||
## The function inspects :bro:id:`Site::local_zones`.
|
||||
## The function inspects :zeek:id:`Site::local_zones`.
|
||||
global is_local_name: function(name: string): bool;
|
||||
|
||||
## Function that returns true if a host name is within a neighbor
|
||||
## DNS zone.
|
||||
## The function inspects :bro:id:`Site::neighbor_zones`.
|
||||
## The function inspects :zeek:id:`Site::neighbor_zones`.
|
||||
global is_neighbor_name: function(name: string): bool;
|
||||
|
||||
## Function that returns a comma-separated list of email addresses
|
||||
## that are considered administrators for the IP address provided as
|
||||
## an argument.
|
||||
## The function inspects :bro:id:`Site::local_admins`.
|
||||
## The function inspects :zeek:id:`Site::local_admins`.
|
||||
global get_emails: function(a: addr): string;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
##! Functions for using multiple thresholds with a counting tracker. For
|
||||
##! example, you may want to generate a notice when something happens 10 times
|
||||
##! and again when it happens 100 times but nothing in between. You can use
|
||||
##! the :bro:id:`check_threshold` function to define your threshold points
|
||||
##! and the :bro:type:`TrackCount` variable where you are keeping track of your
|
||||
##! the :zeek:id:`check_threshold` function to define your threshold points
|
||||
##! and the :zeek:type:`TrackCount` variable where you are keeping track of your
|
||||
##! counter.
|
||||
|
||||
module GLOBAL;
|
||||
|
@ -18,12 +18,12 @@ export {
|
|||
};
|
||||
|
||||
## The thresholds you would like to use as defaults with the
|
||||
## :bro:id:`default_check_threshold` function.
|
||||
## :zeek:id:`default_check_threshold` function.
|
||||
const default_notice_thresholds: vector of count = {
|
||||
30, 100, 1000, 10000, 100000, 1000000, 10000000,
|
||||
} &redef;
|
||||
|
||||
## This will check if a :bro:type:`TrackCount` variable has crossed any
|
||||
## This will check if a :zeek:type:`TrackCount` variable has crossed any
|
||||
## thresholds in a given set.
|
||||
##
|
||||
## v: a vector holding counts that represent thresholds.
|
||||
|
@ -34,8 +34,8 @@ export {
|
|||
## Returns: T if a threshold has been crossed, else F.
|
||||
global check_threshold: function(v: vector of count, tracker: TrackCount): bool;
|
||||
|
||||
## This will use the :bro:id:`default_notice_thresholds` variable to
|
||||
## check a :bro:type:`TrackCount` variable to see if it has crossed
|
||||
## This will use the :zeek:id:`default_notice_thresholds` variable to
|
||||
## check a :zeek:type:`TrackCount` variable to see if it has crossed
|
||||
## another threshold.
|
||||
global default_check_threshold: function(tracker: TrackCount): bool;
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
## A regular expression for matching and extracting URLs.
|
||||
const url_regex = /^([a-zA-Z\-]{3,5})(:\/\/[^\/?#"'\r\n><]*)([^?#"'\r\n><]*)([^[:blank:]\r\n"'><]*|\??[^"'\r\n><]*)/ &redef;
|
||||
|
||||
## A URI, as parsed by :bro:id:`decompose_uri`.
|
||||
## A URI, as parsed by :zeek:id:`decompose_uri`.
|
||||
type URI: record {
|
||||
## The URL's scheme..
|
||||
scheme: string &optional;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue