mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
![]() This commit fixes three issues with Zeek's Modbus message logging: 1 - Some exception responses (e.g., READ_COILS_EXCEPTION) are logged twice: once without and once with the exception message. 2 - Some exception responses (e.g., PROGRAM_484_EXCEPTION) are not logged. 3 - Some known but reserved function codes (e.g., PROGRAM_UNITY) are logged as unk-xxx (e.g., unk-90), while it would be possible to log their known name. To address these inconsistencies, the modbus parser has been updated to parse all exception responses (i.e., all responses where the MSB of the function code is set) using the already defined Exception message. Also, the Modbus main.zeek script has been updated to consistently demand logging exception responses to the specialized modbus_exception event, rather than logging some exception responses in the modbus_message event and others in the modbus_exception event. Finally, the main.zeek script has been updated to make sure that for every known function code, the corresponding exception code was also present, and the enumeration of known function codes in consts.zeek has been expanded. Closes #3984 |
||
---|---|---|
.. | ||
benchmark/broker | ||
btest | ||
builtin-plugins | ||
coverage | ||
external | ||
scripts | ||
.gitignore | ||
CMakeLists.txt | ||
Makefile | ||
README |
This directory contains suites for testing for Zeek's correct operation: btest/ An ever-growing set of small unit tests testing Zeek's functionality. external/ A framework for downloading additional test sets that run more complex Zeek configuration on larger traces files. Due to their size, these are not included directly. See the README for more information. scripts/ Helpers scripts used by some tests.