Project

General

Profile

Actions

Optimization #4490

open

rust: see if we can use SuricataStreamingBufferConfig

Added by Shivani Bhardwaj almost 3 years ago. Updated 10 months ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
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.

Actions #1

Updated by Victor Julien almost 3 years ago

  • Subject changed from SuricataStreamingBufferConfig in Rust to rust: see if we can use SuricataStreamingBufferConfig
Actions #2

Updated by Victor Julien almost 2 years ago

  • Assignee deleted (Victor Julien)
Actions #3

Updated by Philippe Antoine 10 months 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

Also available in: Atom PDF