Project

General

Profile

Actions

Optimization #7889

open

detect/integers: move keywords from C to rust

Added by Philippe Antoine 28 days ago. Updated 10 days ago.

Status:
In Progress
Priority:
Normal
Target version:
Effort:
Difficulty:
Label:

Description

git grep ByteExtractStringUint src/detect*.c seems to show 2 http2 keywords like error_code and frame_type and ike-chosen-sa.c

On the way, use enumerations or bitflags if needed (#6723 and #6724)


Related issues 2 (1 open1 closed)

Related to Suricata - Task #6644: tracking: detect: integer as first-class supportIn ProgressPhilippe AntoineActions
Related to Suricata - Feature #6723: detect: review existing keywords for usage of enumerationsClosedPhilippe AntoineActions
Actions #1

Updated by Philippe Antoine 28 days ago

  • Related to Task #6644: tracking: detect: integer as first-class support added
Actions #2

Updated by Philippe Antoine 21 days ago

  • Tracker changed from Bug to Optimization
Actions #3

Updated by Philippe Antoine 12 days ago

  • Related to Feature #6723: detect: review existing keywords for usage of enumerations added
Actions #4

Updated by Philippe Antoine 11 days ago

See usage of StringParseUint or ByteExtractStringUint

Actions #5

Updated by Philippe Antoine 10 days ago

ike-chosen-sa is not a pure integer,

typedef struct {
    char *sa_type;
    uint32_t sa_value;
} DetectIkeChosenSaData;

This ticket will remain about pure integers

Actions #6

Updated by Philippe Antoine 10 days ago

  • Status changed from New to In Progress

https://github.com/OISF/suricata/pull/13909 ok for all ByteExtractStringUint

Actions

Also available in: Atom PDF