suricata
detect-mqtt-flags.c File Reference
#include "suricata-common.h"
#include "conf.h"
#include "detect.h"
#include "detect-parse.h"
#include "detect-engine.h"
#include "detect-engine-content-inspection.h"
#include "detect-mqtt-flags.h"
#include "util-unittest.h"
#include "rust.h"
Include dependency graph for detect-mqtt-flags.c:

Go to the source code of this file.

Data Structures

struct  DetectMQTTFlagsData_
 

Macros

#define PARSE_REGEX   "(?: *,?!?(?:retain|dup))+"
 

Typedefs

typedef struct DetectMQTTFlagsData_ DetectMQTTFlagsData
 

Functions

void MQTTFlagsRegisterTests (void)
 this function registers unit tests for MQTTFlags More...
 
void DetectMQTTFlagsFree (DetectEngineCtx *de_ctx, void *)
 
void DetectMQTTFlagsRegister (void)
 Registration function for mqtt.flags: keyword. More...
 

Detailed Description

Macro Definition Documentation

◆ PARSE_REGEX

#define PARSE_REGEX   "(?: *,?!?(?:retain|dup))+"

Definition at line 36 of file detect-mqtt-flags.c.

Typedef Documentation

◆ DetectMQTTFlagsData

Function Documentation

◆ DetectMQTTFlagsFree()

void DetectMQTTFlagsFree ( DetectEngineCtx de_ctx,
void *  de_ptr 
)

Definition at line 239 of file detect-mqtt-flags.c.

References SCFree.

◆ DetectMQTTFlagsRegister()

void DetectMQTTFlagsRegister ( void  )

Registration function for mqtt.flags: keyword.

Definition at line 59 of file detect-mqtt-flags.c.

References SigTableElmt_::AppLayerTxMatch, SigTableElmt_::desc, DETECT_AL_MQTT_FLAGS, SigTableElmt_::name, sigmatch_table, and SigTableElmt_::url.

Referenced by SigTableSetup().

Here is the caller graph for this function:

◆ MQTTFlagsRegisterTests()

void MQTTFlagsRegisterTests ( void  )

this function registers unit tests for MQTTFlags

Definition at line 361 of file detect-mqtt-flags.c.

References UtRegisterTest().

Here is the call graph for this function: