You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
suricata/rust
Shivani Bhardwaj f2de3e01cb src: remove truncate fn and glue code
truncate fn is only active and used by dcerpc and smb parsers. In case
stream depth is reached for any side, truncate fn is supposed to set the
tx entity (request/response) in the same direction as complete so the
other side is not forever waiting for data.

However, whether the stream depth is reached is already checked by
AppLayerParserGetStateProgress fn which is called by:
- DetectTx
- DetectEngineInspectBufferGeneric
- AppLayerParserSetTransactionInspectId
- OutputTxLog
- AppLayerParserTransactionsCleanup

and, in such a case, StateGetProgressCompletionStatus is returned for
the respective direction. This fn following efc9a7a, always returns 1
as long as the direction is valid meaning that the progress for the
current direction is marked complete. So, there is no need for the additional
callback to mark the entities as done in case of depth or a gap.
Remove all such glue code and callbacks for truncate fns.

Bug 7044
1 year ago
..
.cargo rust: rename .cargo/config to .cargo/config.toml 1 year ago
derive cargo: add description and license 2 years ago
src src: remove truncate fn and glue code 1 year ago
.gitignore rust: rename .cargo/config to .cargo/config.toml 1 year ago
Cargo.lock.in lua: use rust crate to vendor (bundle) lua 1 year ago
Cargo.toml.in cargo: use default-features instead of default_features 1 year ago
Makefile.am rust/Makefile: cleanup "clean" targets 1 year ago
cbindgen.toml detect: helper to have pure rust keywords 1 year ago
rustfmt.toml rustfmt: replace deprecated fn_args_layout with fn_params_layout 2 years ago