Project

General

Profile

Actions

Optimization #4475

closed
SB SB

Rust: Make default_port in parser registration an Option

Optimization #4475: Rust: Make default_port in parser registration an Option

Added by Shivani Bhardwaj almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Target version:
Effort:
Difficulty:
Label:

Related issues 1 (0 open1 closed)

Related to Suricata - Optimization #3315: app-layer: unify registration logicClosedShivani BhardwajActions

SB Updated by Shivani Bhardwaj almost 5 years ago Actions #1

SB Updated by Shivani Bhardwaj almost 5 years ago Actions #2

  • Status changed from Assigned to In Review

Seems like using Option for `*const i8` is not FFI safe and Rust warns about it.
Using a null string in place of default port does seem to do the work though. Changed it in DCERPC only for now where there is not a fixed port of communication.
PR for review: https://github.com/OISF/suricata/pull/6234

SB Updated by Shivani Bhardwaj over 4 years ago Actions #3

  • Status changed from In Review to Closed
Actions

Also available in: PDF Atom