Actions
Optimization #4490
openrust: see if we can use SuricataStreamingBufferConfig
Effort:
Difficulty:
Label:
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.
Updated by Victor Julien over 3 years ago
- Subject changed from SuricataStreamingBufferConfig in Rust to rust: see if we can use SuricataStreamingBufferConfig
Updated by Philippe Antoine over 1 year ago
- 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()>,
}
Actions