Optimization #4490
open
rust: see if we can use SuricataStreamingBufferConfig
Added by Shivani Bhardwaj over 3 years ago.
Updated over 1 year ago.
Description
Since some protocols like smb, nfs and smtp need to use SuricataStreamingBufferConfig, we need to figure out a better way to use it than as an opaque type in Rust.
- Subject changed from SuricataStreamingBufferConfig in Rust to rust: see if we can use SuricataStreamingBufferConfig
- Assignee deleted (
Victor Julien)
- Assignee set to OISF Dev
- Target version set to 8.0.0-beta1
This looks possible to have this in rust :
#[repr(C)]
pub struct StreamingBufferConfig {
pub buf_size: u32,
pub max_regions: u16,
pub region_gap: u32,
// do not bother with real prototypes
pub calloc: Option<unsafe extern "C" fn()>,
pub realloc: Option<unsafe extern "C" fn()>,
pub free: Option<unsafe extern "C" fn()>,
}
Also available in: Atom
PDF