tweaks to base scripts revealed by switch to expression-based initialization

This commit is contained in:
Vern Paxson 2022-03-11 14:24:39 -08:00 committed by Tim Wojtulewicz
parent 63f902daff
commit f62c04c9eb
3 changed files with 4 additions and 4 deletions

View file

@ -95,7 +95,7 @@ export {
## even if it exposes itself with an alternate name. The ## even if it exposes itself with an alternate name. The
## yielded string is the name that will be logged and generally ## yielded string is the name that will be logged and generally
## used for everything. ## used for everything.
global alternate_names: table[string] of string { global alternate_names: table[string] of string = {
["Flash Player"] = "Flash", ["Flash Player"] = "Flash",
} &default=function(a: string): string { return a; }; } &default=function(a: string): string { return a; };

View file

@ -28,7 +28,7 @@ export {
} &default = function(n: count): string { return fmt("unknown-message-type-%d", n); }; } &default = function(n: count): string { return fmt("unknown-message-type-%d", n); };
## Option types mapped to their names. ## Option types mapped to their names.
const option_types: table[int] of string = { const option_types = {
[0] = "Pad", [0] = "Pad",
[1] = "Subnet Mask", [1] = "Subnet Mask",
[2] = "Time Offset", [2] = "Time Offset",
@ -185,5 +185,5 @@ export {
[221] = "Virtual Subnet Selection (VSS) Option", [221] = "Virtual Subnet Selection (VSS) Option",
[252] = "auto-proxy-config", [252] = "auto-proxy-config",
[255] = "End", [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); };
} }

View file

@ -108,7 +108,7 @@ export {
## The default root CA bundle. By default, the mozilla-ca-list.zeek ## The default root CA bundle. By default, the mozilla-ca-list.zeek
## script sets this to Mozilla's root CA list. ## 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 ## The record type which contains the field for the Certificate
## Transparency log bundle. ## Transparency log bundle.