Philippe Antoine
673d13d445
rust: allow clippy::items_after_test_module
...
As clippy began to complain about jsonbuilder.rs
2 years ago
Jason Ish
15ed51f9b8
feature: provide a Rust binding to the feature API
...
As the feature module is not available for Rust unit tests, a mock
version is also provided.
2 years ago
Daniel Olatunji
54de0450f4
rust: remove cbindgen:ignore on frames module
...
This directive is no longer required, and does
mess up the rustdoc description of the module.
2 years ago
Daniel Olatunji
5c0af0b203
rust/doc: add docstring to rust module files.
...
Issue: #4584
2 years ago
Jason Ish
159b72c101
rust/clippy: allow derivable impls
...
The latest Rust will automatically "fix" derivable default
implementation, which is nice, but makes changes that don't meet our
current MSRV, so allow derivable impls for now.
2 years ago
Jason Ish
29f345af1a
rust: allow uninlined_format_args
...
Newer versions of Rust/clippy are getting picky about format strings.
We should allow and use the new style, but also not prevent the old
style.
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
Todd Mortimer
7d1a8cc335
file/swf: Use lzma-rs decompression instead of libhtp.
...
Use the lzma-rs crate for decompressing swf/lzma files instead of
the lzma decompressor in libhtp. This decouples suricata from libhtp
except for actual http parsing, and means libhtp no longer has to
export a lzma decompression interface.
Ticket: #5638
3 years ago
Aaron Bungay
86037885a9
bittorrent-dht: add bittorrent-dht app layer
...
Parses and logs the bittorrent-dht protocol.
Note: Includes some compilation fixups after rebase by Jason Ish.
Feature: #3086
3 years ago
Alice Akaki
ccdc992a71
rust: fix lint warnings about mixed case hex literals
...
Ticket: #4593
3 years ago
Gabriel Lima Luz
4e90d17fd9
rust: fix lint warnings about if same then else
...
Ticket: 4609
3 years ago
Kristina Jefferson
9cd00424c3
rust: fix lint warnings about ptr_arg
...
Ticket: #4599
3 years ago
Jason Ish
560c4ea125
rust: don't allow fixed up clippy lints
3 years ago
Jason Ish
5a10fcd2d8
rust: suppress large enum variant lint at location
...
And disable the global lint.
3 years ago
Jason Ish
36f8ada305
rust: remove clippy lints that no longer warn
3 years ago
Jason Ish
e8c00dd980
rust: sort clippy allow statements
3 years ago
Haleema Khan
6c922e0b98
rust: fix lint warning for clippy::enum's name
...
Ticket: #4597
3 years ago
Jason Ish
63b3d73ccc
rust: allow some more clippy lints
...
Allow these lints for now until some more investigation can be done, as
--fix attempts to fix these.
3 years ago
Pierre Chifflier
16db04c1a7
rust: remove nom 5 dependency
3 years ago
Jeff Lucovsky
8bfe427a74
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
3 years ago
Jeff Lucovsky
ccd1063e43
detect/bytemath: convert parser to Rust
...
Issue: 5077
This commit
- Converts the PCRE based parser to Rust.
- Adds unit tests to the new Rust modules
- Removes the PCRE parser from detect-bytemath.c
- Adjusts the C source modules to refer to the Rust definitions
- Includes the multiply operator (missing from the C parser)
3 years ago
Philippe Antoine
f29b43defd
detect: rust generic functions for integers
...
Move it away from http2 to generic core crate.
And use it for DCERPC (and SMB)
And remove the C version.
Main change in API is the free function is not free itself, but
a rust wrapper around unbox.
Ticket: #4112
3 years ago
Juliana Fajardini
579d7dcc01
pgsql: add initial support
...
- add nom parsers for decoding most messages from StartupPhase and
SimpleQuery subprotocols
- add unittests
- tests/fuzz: add pgsql to confyaml
Feature: #4241
4 years ago
Emmanuel Thompson
7e51987263
quic: Add QUIC App Layer
...
Parses quic and logs a CYU hash for gquic frames
4 years ago
Victor Julien
44c9241b6a
telnet: initial support with frames
...
Bootstrapped using setup script. Basic option parsing for purpose
of tagging frames.
4 years ago
Jason Ish
8a40b7b42e
cbindgen: ignore frames module
4 years ago
Jason Ish
cb7f7a7e08
app/frames: implement rust API
4 years ago
Philippe Antoine
8feb9c35ae
mime: move FindMimeHeaderTokenRestrict to rust
...
Also fixes the case where the token name is present
in a value
4 years ago