mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 11:08:20 +00:00
Call ProtocolConfirmation in SNMP only if we saw a response SNMP packet
This commit is contained in:
parent
f4141bde6d
commit
d731cb9a18
1 changed files with 3 additions and 1 deletions
|
@ -373,10 +373,12 @@ refine connection SNMP_Conn += {
|
|||
|
||||
function proc_header(rec: Header): bool
|
||||
%{
|
||||
if ( ! ${rec.is_orig} )
|
||||
bro_analyzer()->ProtocolConfirmation();
|
||||
|
||||
if ( rec->unknown() )
|
||||
return false;
|
||||
|
||||
bro_analyzer()->ProtocolConfirmation();
|
||||
return true;
|
||||
%}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue