Shivani Bhardwaj
0c6e9ac931
files: use Direction enum
4 years ago
Jason Ish
69cf5c9eea
rust(lint): remove needless borrows
...
These are needless borrows (references) as the item is already
a reference.
4 years ago
Victor Julien
3587033d9e
files: construct with default, free on drop
...
Update protocols.
4 years ago
Victor Julien
d757545f03
files: implement default support
4 years ago
Philippe Antoine
2e46b5d100
rust: BIT_U16 macro utility
5 years ago
Juliana Fajardini
5226ba1c15
Rust: generic files definition
...
Issue: Optimization 3825
- filecontainer: add Files structure, to replace/unify SMBFiles,
NFSFiles and HTTP2Files
- smb/files: delete SMBFiles implementation
- smb/smb: replace SMBFiles with Files
- nfs/nfs: delete NFSFiles implementation, replace its former
declarations with Files' ones
- http2/http2: replace HTTP2Files with Files
- http2/mod: Delete reference to file files.rs
- http2/files: Delete
5 years ago
Philippe Antoine
f574663352
http2: files inspection API fixes
...
uses right transaction id for file tracker
uses FILE_USE_DETECT for good matches with keyword startswith
5 years ago
Jason Ish
ac93ab281d
rust/logging: allow log macros to be used by plugins
...
Fix plugin macros so they can be used by external Rust crates
such as plugins.
5 years ago
Philippe Antoine
1422b18a99
http2: initial support
5 years ago
Jason Ish
42e5065ab8
rust: update to Rust 2018 with cargo fix
...
Migrate to Rust 2018 edition.
Credit to Danny Browning for first demontrating this:
https://github.com/OISF/suricata/pull/3604/commits
6 years ago
Victor Julien
3f6624bf16
rust: remove libc crate dependency
...
Use std::os::raw instead.
6 years ago
Victor Julien
45c5030ff0
rust/file: change return type for FileOpenFileWithId
...
Make it int so we can easily check it in Rust. No consumer used the
File pointer that was returned before anyway.
8 years ago
Victor Julien
d9e5dfa1f0
rust/file: improve truncation handling
8 years ago
Victor Julien
58af39131f
rust/nfs: handle GAPs
...
In normal records it will try to continue parsing.
GAP 'data' will be passed to file api as '0's. New call is used
so that the file API does know it is dealing with a GAP. Such
files are flagged as truncated at the end of the file and no
checksums are calculated.
8 years ago
Victor Julien
a809f090d3
rust: filecontainer API
...
Wrapper around Suricata's File and FileContainer API. Built around
assumption that a rust owned structure will have a
'SuricataFileContainer' member that is managed by the C-side of
things.
8 years ago