mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 04:28:20 +00:00
Merge remote-tracking branch 'origin/topic/johanna/bit-1644'
BIT-1644 #merged * origin/topic/johanna/bit-1644: Correct endianness of IP addresses in SNMP.
This commit is contained in:
commit
3513cfc219
7 changed files with 53 additions and 3 deletions
15
testing/btest/scripts/base/protocols/snmp/snmp-addr.bro
Normal file
15
testing/btest/scripts/base/protocols/snmp/snmp-addr.bro
Normal file
|
@ -0,0 +1,15 @@
|
|||
# @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;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue