&is_set => &is_assigned

This commit is contained in:
Vern Paxson 2021-02-04 12:18:46 -08:00
parent d71675a7dc
commit c991c54690
16 changed files with 22 additions and 22 deletions

View file

@ -240,7 +240,7 @@ function set_conn(c: connection, eoc: bool)
{
if ( ! c?$conn )
{
local tmp: Info &is_set;
local tmp: Info &is_assigned;
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 &is_set;
local tid: count &is_assigned;
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 &is_set; # &is_set for $ts field
local best_match: CmdArg &is_assigned; # &is_assigned 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 &is_set; # &is_set for case where no $std_msg
local info: Info &is_assigned; # 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 &is_set; # needed for $version
local info: SSH::Info &is_assigned; # 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 &is_set; # &is_set to help static analysis
local c: connection &is_assigned; # to help static analysis
for ( cid, c in f$conns )
{