detect-engine-modbus.c File Reference
#include "suricata-common.h"
#include "app-layer.h"
#include "app-layer-modbus.h"
#include "detect.h"
#include "detect-modbus.h"
#include "detect-engine-modbus.h"
#include "flow.h"
#include "util-debug.h"
#include "app-layer-parser.h"
#include "detect-parse.h"
#include "detect-engine.h"
#include "flow-util.h"
#include "stream-tcp.h"
#include "util-unittest.h"
#include "util-unittest-helper.h"
Include dependency graph for detect-engine-modbus.c:

Go to the source code of this file.


int DetectEngineInspectModbus (ThreadVars *tv, DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, const Signature *s, const SigMatchData *smd, Flow *f, uint8_t flags, void *alstate, void *txv, uint64_t tx_id)
 Do the content inspection & validation for a signature. More...
void DetectEngineInspectModbusRegisterTests (void)

Detailed Description

Function Documentation

◆ DetectEngineInspectModbus()

int DetectEngineInspectModbus ( ThreadVars tv,
DetectEngineCtx de_ctx,
DetectEngineThreadCtx det_ctx,
const Signature s,
const SigMatchData smd,
Flow f,
uint8_t  flags,
void *  alstate,
void *  txv,
uint64_t  tx_id 

Do the content inspection & validation for a signature.

de_ctxDetection engine context
det_ctxDetection engine thread context
sSignature to inspect ( and sm: SigMatch to inspect)
flagsApp layer flags
alstateApp layer state
txvPointer to Modbus Transaction structure
Return values
0no match or 1 match

Definition at line 199 of file detect-engine-modbus.c.

References SigMatchData_::ctx, SCEnter, SCLogDebug, SCReturnInt, and DetectModbus_::unit_id.

◆ DetectEngineInspectModbusRegisterTests()

void DetectEngineInspectModbusRegisterTests ( void  )

Definition at line 1444 of file detect-engine-modbus.c.

References UtRegisterTest().

Here is the call graph for this function: