suricata
detect-mqtt-reason-code.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-reason-code.h"
#include "util-byte.h"
#include "util-unittest.h"
#include "rust.h"
Include dependency graph for detect-mqtt-reason-code.c:

Go to the source code of this file.

Macros

#define PARSE_REGEX   "^\\s*\\d+\\s*$"
 

Functions

void MQTTReasonCodeRegisterTests (void)
 this function registers unit tests for MQTTReasonCode More...
 
void DetectMQTTReasonCodeFree (DetectEngineCtx *de_ctx, void *)
 
void DetectMQTTReasonCodeRegister (void)
 Registration function for mqtt.reason_code: keyword. More...
 

Detailed Description

Macro Definition Documentation

◆ PARSE_REGEX

#define PARSE_REGEX   "^\\s*\\d+\\s*$"

Definition at line 37 of file detect-mqtt-reason-code.c.

Function Documentation

◆ DetectMQTTReasonCodeFree()

void DetectMQTTReasonCodeFree ( DetectEngineCtx de_ctx,
void *  de_ptr 
)

Definition at line 200 of file detect-mqtt-reason-code.c.

References SCFree.

◆ DetectMQTTReasonCodeRegister()

void DetectMQTTReasonCodeRegister ( void  )

Registration function for mqtt.reason_code: keyword.

Definition at line 56 of file detect-mqtt-reason-code.c.

References SigTableElmt_::alias, SigTableElmt_::AppLayerTxMatch, SigTableElmt_::desc, DETECT_AL_MQTT_REASON_CODE, SigTableElmt_::name, sigmatch_table, and SigTableElmt_::url.

Referenced by SigTableSetup().

Here is the caller graph for this function:

◆ MQTTReasonCodeRegisterTests()

void MQTTReasonCodeRegisterTests ( void  )

this function registers unit tests for MQTTReasonCode

Definition at line 305 of file detect-mqtt-reason-code.c.

References UtRegisterTest().

Here is the call graph for this function: