mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
Call ProtocolConfirmed on modbus
After a PDU is successfully parsed from both sides of a modbus connection we're now declaring the protocol confirmed. A small extension to the modbus/events test was added to verify that "modbus" was identified in the service field in conn.log.
This commit is contained in:
parent
217ccf6063
commit
7d105935b1
3 changed files with 55 additions and 0 deletions
|
@ -5,6 +5,8 @@
|
|||
# @TEST-EXEC: cat ${DIST}/src/analyzer/protocol/modbus/events.bif | grep "^event modbus_" | wc -l >total
|
||||
# @TEST-EXEC: echo `cat covered` of `cat total` events triggered by trace >coverage
|
||||
# @TEST-EXEC: btest-diff coverage
|
||||
# @TEST-EXEC: btest-diff conn.log
|
||||
|
||||
|
||||
event modbus_message(c: connection, headers: ModbusHeaders, is_orig: bool)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue