adding &is_set attributes to base scripts so -u output isn't cluttered

This commit is contained in:
Vern Paxson 2021-01-23 10:55:27 -08:00
parent 2f0d02c878
commit 0d77b474e6
8 changed files with 8 additions and 8 deletions

View file

@ -240,7 +240,7 @@ function set_conn(c: connection, eoc: bool)
{
if ( ! c?$conn )
{
local tmp: Info;
local tmp: Info &is_set;
c$conn = tmp;
}

View file

@ -293,7 +293,7 @@ hook set_session(c: connection, msg: dns_msg, is_query: bool) &priority=5
else
{
# Just pick an arbitrary, unpaired query.
local tid: count;
local tid: count &is_set;
local found_one = F;
for ( trans_id, q in c$dns_state$pending_queries )

View file

@ -87,7 +87,7 @@ function add_pending_cmd(pc: PendingCmds, cmd: string, arg: string): CmdArg
# response code and message.
function get_pending_cmd(pc: PendingCmds, reply_code: count, reply_msg: string): CmdArg
{
local best_match: CmdArg;
local best_match: CmdArg &is_set; # &is_set for $ts field
local best_seq = 0;
local best_score: int = -1;

View file

@ -66,7 +66,7 @@ event zeek_init() &priority=5
event ntp_message(c: connection, is_orig: bool, msg: NTP::Message) &priority=5
{
local info: Info;
local info: Info &is_set; # &is_set for case where no $std_msg
info$ts = network_time();
info$uid = c$uid;
info$id = c$id;

View file

@ -142,7 +142,7 @@ function set_session(c: connection)
{
if ( ! c?$ssh )
{
local info: SSH::Info;
local info: SSH::Info &is_set; # needed for $version
info$ts = network_time();
info$uid = c$uid;
info$id = c$id;

View file

@ -102,7 +102,7 @@ event file_sniff(f: fa_file, meta: fa_metadata) &priority=5
|| f$info$mime_type == "application/pkix-cert" ) )
return;
local c: connection;
local c: connection &is_set; # &is_set to help static analysis
for ( cid, c in f$conns )
{

View file

@ -44,7 +44,7 @@ event file_sniff(f: fa_file, meta: fa_metadata) &priority=4
|| f$info$mime_type == "application/pkix-cert" ) )
return;
local c: connection;
local c: connection &is_set;
for ( cid, c in f$conns )
{

View file

@ -95,7 +95,7 @@ event x509_ocsp_ext_signed_certificate_timestamp(f: fa_file, version: count, log
if ( |f$conns| != 1 )
return;
local c: connection;
local c: connection &is_set;
for ( cid, c in f$conns )
{