mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 11:38: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
|
function proc_header(rec: Header): bool
|
||||||
%{
|
%{
|
||||||
|
if ( ! ${rec.is_orig} )
|
||||||
|
bro_analyzer()->ProtocolConfirmation();
|
||||||
|
|
||||||
if ( rec->unknown() )
|
if ( rec->unknown() )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
bro_analyzer()->ProtocolConfirmation();
|
|
||||||
return true;
|
return true;
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue