mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
Modbus analyzer, current support: FC=3,4,5,6,7,16,22,23
This commit is contained in:
parent
4da209d3b1
commit
5c756dcebf
12 changed files with 1773 additions and 0 deletions
9
scripts/base/protocols/modbus/utils.bro
Normal file
9
scripts/base/protocols/modbus/utils.bro
Normal file
|
@ -0,0 +1,9 @@
|
|||
|
||||
#this function checks if the function code is exception (ie. normal fc are 1-127, exception codes are >127)
|
||||
# e.g, fc=128 implies exception repsonse for fc=1
|
||||
function check_e(a:count):count
|
||||
{
|
||||
if (a>127) a=a-128;
|
||||
return a;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue