mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
scripts: Migrate table iteration to blank identifiers
No obvious hot-cases. Maybe the describe_file() ones or the intel ones if/when there are hot intel hits.
This commit is contained in:
parent
46334f8b59
commit
8c5896a74d
17 changed files with 47 additions and 47 deletions
|
@ -222,7 +222,7 @@ hook finalize_dce_rpc(c: connection)
|
|||
return;
|
||||
|
||||
# TODO: Go through any remaining dce_rpc requests that haven't been processed with replies.
|
||||
for ( i, x in c$dce_rpc_backing )
|
||||
for ( _, x in c$dce_rpc_backing )
|
||||
{
|
||||
set_state(c, x);
|
||||
|
||||
|
|
|
@ -191,7 +191,7 @@ function log_unmatched_msgs_queue(q: Queue::Queue)
|
|||
|
||||
function log_unmatched_msgs(msgs: PendingMessages)
|
||||
{
|
||||
for ( trans_id, q in msgs )
|
||||
for ( _, q in msgs )
|
||||
{
|
||||
log_unmatched_msgs_queue(q);
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ function describe_file(f: fa_file): string
|
|||
if ( f$source != "FTP" )
|
||||
return "";
|
||||
|
||||
for ( cid, c in f$conns )
|
||||
for ( _, c in f$conns )
|
||||
{
|
||||
if ( c?$ftp )
|
||||
return FTP::describe(c$ftp);
|
||||
|
|
|
@ -369,7 +369,7 @@ hook finalize_ftp(c: connection)
|
|||
{
|
||||
if ( ! c?$ftp ) return;
|
||||
|
||||
for ( ca, cmdarg in c$ftp$pending_commands )
|
||||
for ( _, cmdarg in c$ftp$pending_commands )
|
||||
{
|
||||
c$ftp$cmdarg = cmdarg;
|
||||
ftp_message(c$ftp);
|
||||
|
|
|
@ -40,7 +40,7 @@ function describe_file(f: fa_file): string
|
|||
if ( f$source != "HTTP" )
|
||||
return "";
|
||||
|
||||
for ( cid, c in f$conns )
|
||||
for ( _, c in f$conns )
|
||||
{
|
||||
if ( c?$http )
|
||||
return build_url_http(c$http);
|
||||
|
|
|
@ -48,7 +48,7 @@ function describe_file(f: fa_file): string
|
|||
# are already populated).
|
||||
#
|
||||
# Just return a bit of our connection information and hope that that is good enough.
|
||||
for ( cid, c in f$conns )
|
||||
for ( _, c in f$conns )
|
||||
{
|
||||
if ( c?$krb )
|
||||
{
|
||||
|
|
|
@ -39,7 +39,7 @@ function describe_file(f: fa_file): string
|
|||
if ( f$source != "SMB" )
|
||||
return "";
|
||||
|
||||
for ( cid, c in f$conns )
|
||||
for ( _, c in f$conns )
|
||||
{
|
||||
if ( c?$smb_state && c$smb_state?$current_file && c$smb_state$current_file?$name )
|
||||
return c$smb_state$current_file$name;
|
||||
|
|
|
@ -241,7 +241,7 @@ event file_state_remove(f: fa_file) &priority=-5
|
|||
if ( f$source != "SMB" )
|
||||
return;
|
||||
|
||||
for ( id, c in f$conns )
|
||||
for ( _, c in f$conns )
|
||||
{
|
||||
if ( c?$smb_state && c$smb_state?$current_file)
|
||||
{
|
||||
|
|
|
@ -31,7 +31,7 @@ function describe_file(f: fa_file): string
|
|||
if ( f$source != "SMTP" )
|
||||
return "";
|
||||
|
||||
for ( cid, c in f$conns )
|
||||
for ( _, c in f$conns )
|
||||
{
|
||||
return SMTP::describe(c$smtp);
|
||||
}
|
||||
|
|
|
@ -81,7 +81,7 @@ function describe_file(f: fa_file): string
|
|||
# are already populated).
|
||||
#
|
||||
# Just return a bit of our connection information and hope that that is good enough.
|
||||
for ( cid, c in f$conns )
|
||||
for ( _, c in f$conns )
|
||||
{
|
||||
if ( c?$ssl )
|
||||
{
|
||||
|
@ -138,7 +138,7 @@ event file_sniff(f: fa_file, meta: fa_metadata) &priority=5
|
|||
|
||||
local c: connection &is_assigned; # to help static analysis
|
||||
|
||||
for ( cid, c in f$conns )
|
||||
for ( _, c in f$conns )
|
||||
{
|
||||
if ( ! c?$ssl )
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue