mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 23:28:20 +00:00
15 lines
350 B
Text
15 lines
350 B
Text
# @TEST-EXEC: bro -C -b -r $TRACES/snmp/snmpwalk-short.pcap %INPUT
|
|
# @TEST-EXEC: btest-diff .stdout
|
|
|
|
@load base/protocols/snmp
|
|
|
|
event snmp_response(c: connection, is_orig: bool, header: SNMP::Header, pdu: SNMP::PDU) {
|
|
|
|
for (i in pdu$bindings) {
|
|
local binding = pdu$bindings[i];
|
|
|
|
if (binding$value?$address)
|
|
print binding$value$address;
|
|
}
|
|
|
|
}
|