mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 07:08:19 +00:00
Merge remote-tracking branch 'origin/topic/jsiwek/snmp'
* origin/topic/jsiwek/snmp: Add memory leak unit test for SNMP. Fix compiler nitpicks from new SNMP code. Add SNMP datagram parsing support. BIT-1142
This commit is contained in:
commit
cf7e25643e
43 changed files with 2374 additions and 7 deletions
1
scripts/base/protocols/snmp/README
Normal file
1
scripts/base/protocols/snmp/README
Normal file
|
@ -0,0 +1 @@
|
|||
Support for Simple Network Management Protocol (SNMP) analysis.
|
1
scripts/base/protocols/snmp/__load__.bro
Normal file
1
scripts/base/protocols/snmp/__load__.bro
Normal file
|
@ -0,0 +1 @@
|
|||
@load ./main
|
15
scripts/base/protocols/snmp/main.bro
Normal file
15
scripts/base/protocols/snmp/main.bro
Normal file
|
@ -0,0 +1,15 @@
|
|||
##! Enables analysis of SNMP datagrams.
|
||||
|
||||
module SNMP;
|
||||
|
||||
export {
|
||||
}
|
||||
|
||||
const ports = { 161/udp, 162/udp };
|
||||
|
||||
redef likely_server_ports += { ports };
|
||||
|
||||
event bro_init() &priority=5
|
||||
{
|
||||
Analyzer::register_for_ports(Analyzer::ANALYZER_SNMP, ports);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue