]> git.ipfire.org Git - thirdparty/suricata.git/commit
rust/detect: Create detect module for rule parsing
authorJeff Lucovsky <jlucovsky@oisf.net>
Sun, 31 Jul 2022 14:45:38 +0000 (10:45 -0400)
committerVictor Julien <vjulien@oisf.net>
Fri, 23 Sep 2022 13:51:23 +0000 (15:51 +0200)
commit8bfe427a7452d22f8061e866c4ce69ba03d15001
treea32c431b3b0939e1cf2160917f6f491ab1975432
parentccd1063e434330d074a64f2493b5c0e966f36877
rust/detect: Create detect module for rule parsing

This commit creates a module named "detect" for rule parsing logic. As
part of this commit, detect.rs is moved from its toplevel position into
the new module. Thus, use crate::detect::detect to refer to items within
detect.rs (instead of create::detect).

Ticket: 5077
rust/src/dcerpc/detect.rs
rust/src/detect/byte_math.rs [moved from rust/src/detect_parser/byte_math.rs with 99% similarity]
rust/src/detect/detect.rs [moved from rust/src/detect.rs with 100% similarity]
rust/src/detect/error.rs [moved from rust/src/detect_parser/error.rs with 100% similarity]
rust/src/detect/mod.rs [moved from rust/src/detect_parser/mod.rs with 97% similarity]
rust/src/detect/parser.rs [moved from rust/src/detect_parser/parser.rs with 96% similarity]
rust/src/http2/detect.rs
rust/src/http2/parser.rs
rust/src/lib.rs
rust/src/smb/detect.rs