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:
Robin Sommer 2014-04-08 15:19:21 -07:00
commit cf7e25643e
43 changed files with 2374 additions and 7 deletions

View file

@ -0,0 +1 @@
Support for Simple Network Management Protocol (SNMP) analysis.

View file

@ -0,0 +1 @@
@load ./main

View 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);
}