]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
modbus: fix quantity and count calculation
authorSimon Dugas <simon.dugas@cyber.gc.ca>
Tue, 11 May 2021 14:41:32 +0000 (10:41 -0400)
committerVictor Julien <victor@inliniac.net>
Tue, 18 May 2021 10:44:32 +0000 (12:44 +0200)
The [Modbus Spec S6.11](https://modbus.org/docs/Modbus_Application_Protocol_V1_1b.pdf)
clearly states that the `count = quantity / 8` and not the other way
around. This is fixed in sawp-0.5.0.

rust/Cargo.toml.in

index 234d5dc0261cb07880177b7612c610f73ad2c1e1..9681b6ac0cc0d49eeb82db96a112813405339738 100644 (file)
@@ -33,8 +33,8 @@ widestring = "~0.4.3"
 flate2 = "~1.0.19"
 brotli = "~3.3.0"
 
-sawp-modbus = "~0.4.0"
-sawp = "~0.4.0"
+sawp-modbus = "~0.5.0"
+sawp = "~0.5.0"
 der-parser = "~4.0.2"
 kerberos-parser = "~0.5.0"
 ntp-parser = "~0.4.0"