Victor Julien
6cc9811edd
files: move FileContainer into FileTransferTracker
...
Update SMB, NFS, HTTP2.
3 years ago
Victor Julien
e3e55406a7
files: update API and callers to take stream config
...
This is to allow not storing the stream buffer config in each file.
3 years ago
Victor Julien
71bc9e75f5
app-layer: get sbconfg with files
3 years ago
Victor Julien
a1a221066f
files: remove filecontainer drop trait
...
In preparation of it becoming impossible to use due to the free
function getting an cfg argument.
3 years ago
Victor Julien
0320c03f8c
http2: explicity free files
...
In preparation of adding an argument to the free functions which
means the drop trait can't be used anymore.
3 years ago
Victor Julien
4b1e9f7c21
smb: explicity free files
...
In preparation of adding an argument to the free functions which
means the drop trait can't be used anymore.
3 years ago
Victor Julien
3a24cce289
nfs: explicity free files
...
In preparation of adding an argument to the free functions which
means the drop trait can't be used anymore.
3 years ago
Victor Julien
4bfeac6591
nfs: file handling cleanups
3 years ago
Victor Julien
33f6a16290
smb: file handling cleanups
3 years ago
Victor Julien
d57510a10f
files: remove unused Rust binding for file pruning
3 years ago
Victor Julien
a24d7dc45c
smb: fix post-trunc chunk behavior
...
After a gap in a file transaction, the file tracker is truncated. However
this did not clear any stored out of order chunks from memory or stop more
chunks to be stored, leading to accumulation of a large number of chunks.
This patches fixes this be clearing the stored chunks on trunc. It also
makes sure no more chunks are stored in the tracker after the trunc.
Bug: #5781 .
3 years ago
Philippe Antoine
55c4834e4e
smb: configurable max number of transactions per flow
...
Ticket: #5753
3 years ago
Philippe Antoine
1d9183638f
smb: convert transaction list to vecdeque
...
Allows for more efficient removal from front of the list.
Ticket: #5753
3 years ago
Philippe Antoine
cb89192ec3
smb: fix typo in comment
3 years ago
Haleema Khan
cfcb7df9dc
mqtt: rustfmt parser.rs
3 years ago
Haleema Khan
23acb89653
mqtt: add unittests for nom7 parsers
...
Ticket: #5742
3 years ago
Haleema Khan
cdc5ccd7f7
rfb: rustfmt parser.rs
3 years ago
Haleema Khan
b95d7efbd0
rfb: add unittests for nom7 parsers
...
Task: #5741
3 years ago
Philippe Antoine
3979acb5ed
smb: set event for ntlmssp unusual order
3 years ago
Philippe Antoine
e41c01a483
smb: rustfmt ntlmssp_records.rs
3 years ago
Philippe Antoine
1db8685848
smb/ntlmssp: parse fields independently of order
...
Instead of relying on the usual ordering...
Ticket: #5258
3 years ago
Jason Ish
ae192ebae7
rust: sync log levels with C
3 years ago
Jeff Lucovsky
f8474344cd
log: Add module and subsystem identifiers to log
...
Issue: 2497
This changeset provides subsystem and module identifiers in the log when
the log format string contains "%S". By convention, the log format
surrounds "%S" with brackets.
The subsystem name is generally the same as the thread name. The module
name is derived from the source code module name and usually consists of
the first one or 2 segments of the name using the dash character as the
segment delimiter.
3 years ago
Victor Julien
b31ffde6f4
output: remove error codes from output
3 years ago
Jason Ish
bd9adac3ac
rust/clippy: comments on why we have specific allows
3 years ago
Jason Ish
dfd7abe185
rust/clippy: fix lint: type_complexity
...
Convert a DNS sub-parser to use a return type rather than a large
tuple. For mqtt, allow the lint for now, but remove the global allow.
3 years ago
Jason Ish
e49ce49471
rust/clippy: allow result_unit_err in http2 only
...
Its the only module making use of this pattern, but we shouldn't let
new modules use this pattern.
3 years ago
Jason Ish
7ba2dadc7f
rust/clippy: fix lint: upper_case_acronyms
3 years ago
Jason Ish
029ac650d7
rust/clippy: fix lint: manual_find
...
These get_tx methods look like ideal candidates for generic and/or
derived methods.
3 years ago
Jason Ish
4940dfb3bd
rust/clippy: fix lint: len_without_is_empty
3 years ago
Jason Ish
e1cffd348f
rust/clippy: fix lint: field_reassign_with_default
3 years ago
Jason Ish
9df7c326b9
rust/clippy: remove allow: collapsible_else_if
3 years ago
Jason Ish
30ee5fc835
rust/clippy: remove allow: collapsible_if
...
Already clean.
3 years ago
Jason Ish
da12b77f18
rust/clippy: fix lint: new_without_default
3 years ago
Jason Ish
c4cf062a6f
rust/clippy: fix lint: redundant_pattern_matching
3 years ago
Jason Ish
7c293ff68f
rust/clippy: fix lint: never_loop
3 years ago
Jason Ish
e8823644ec
rust/clippy: fix lint: nonminimal_bool
3 years ago
Jason Ish
53ae0c8a06
rust/clippy: fix lint: derive_partial_eq_without_eq
3 years ago
Jason Ish
5d62995e26
rust/clippy: fix lint: explicit_counter_loop
3 years ago
Jason Ish
f250b92180
rust/clippy: fix lint: extra_unused_lifetimes
3 years ago
Jason Ish
3044565cf4
rust/clippy: fix lint: needless_range_loop
3 years ago
Jason Ish
2ac52d0610
rust/clippy: remove lint: for_loops_over_fallibles
...
Already clean.
3 years ago
Jason Ish
c026d8531b
rust/clippy: fix lint: match_ref_pats
3 years ago
Jason Ish
359d5fcb7e
rust/clippy: fix lint: needless_lifetimes
3 years ago
Jason Ish
4e001688de
rust/clippy: remove lint: bool_comparison
...
Already clean.
3 years ago
Jason Ish
f15ffbc869
rust/clippy: fix lint: single_match
...
Allow this lint in some cases where a match statement adds clarity.
3 years ago
Jason Ish
925bc74c1f
rust/clippy: fix lint: while_let_loop
3 years ago
Jason Ish
cf20fa1e67
template: import c_void, c_char, c_int
...
These are ffi types that are commonly used, import them so they can be
used by their short names instead of a fully qualified name.
3 years ago
Jason Ish
4220f18258
template: remove no_mangle and pub where not needed
...
Extern functions that are only used as a function pointer do not
require "pub" or "no_mangle".
3 years ago
Jason Ish
4a7567b3f0
template: rename template-rust to template
...
Remove the distinction between the C template protocol "template" and
the Rust template protocol "template-rust" and make the Rust parser
simply template now that we no longer have support to generate a C
protocol template.
3 years ago