Project

General

Profile

Actions

Optimization #4490

closed
SB OD

rust: see if we can use SuricataStreamingBufferConfig

Optimization #4490: rust: see if we can use SuricataStreamingBufferConfig

Added by Shivani Bhardwaj almost 5 years ago. Updated 2 months ago.

Status:
Closed
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.

VJ Updated by Victor Julien almost 5 years ago Actions #1

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

VJ Updated by Victor Julien almost 4 years ago Actions #2

  • Assignee deleted (Victor Julien)

PA Updated by Philippe Antoine almost 3 years ago Actions #3

  • 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()>,
}

VJ Updated by Victor Julien over 1 year ago Actions #4

  • Target version changed from 8.0.0-beta1 to 9.0.0-beta1

PA Updated by Philippe Antoine 2 months ago Actions #5

  • Status changed from New to Closed

Done by bindgen in 958344787f25bd6e04bd452e9f36f33b41821828

Actions

Also available in: PDF Atom