mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
tweaks to base scripts revealed by switch to expression-based initialization
This commit is contained in:
parent
63f902daff
commit
f62c04c9eb
3 changed files with 4 additions and 4 deletions
|
@ -95,7 +95,7 @@ export {
|
|||
## even if it exposes itself with an alternate name. The
|
||||
## yielded string is the name that will be logged and generally
|
||||
## used for everything.
|
||||
global alternate_names: table[string] of string {
|
||||
global alternate_names: table[string] of string = {
|
||||
["Flash Player"] = "Flash",
|
||||
} &default=function(a: string): string { return a; };
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ export {
|
|||
} &default = function(n: count): string { return fmt("unknown-message-type-%d", n); };
|
||||
|
||||
## Option types mapped to their names.
|
||||
const option_types: table[int] of string = {
|
||||
const option_types = {
|
||||
[0] = "Pad",
|
||||
[1] = "Subnet Mask",
|
||||
[2] = "Time Offset",
|
||||
|
@ -185,5 +185,5 @@ export {
|
|||
[221] = "Virtual Subnet Selection (VSS) Option",
|
||||
[252] = "auto-proxy-config",
|
||||
[255] = "End",
|
||||
} &default = function(n: int): string { return fmt("unknown-option-type-%d", n); };
|
||||
} &default = function(n: count): string { return fmt("unknown-option-type-%d", n); };
|
||||
}
|
||||
|
|
|
@ -108,7 +108,7 @@ export {
|
|||
|
||||
## The default root CA bundle. By default, the mozilla-ca-list.zeek
|
||||
## script sets this to Mozilla's root CA list.
|
||||
const root_certs: table[string] of string = {} &redef;
|
||||
const root_certs: table[string] of string &redef;
|
||||
|
||||
## The record type which contains the field for the Certificate
|
||||
## Transparency log bundle.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue