suricata
detect-lua.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void DetectLuaRegister (void)
 Registration function for keyword: lua. More...
 
int DetectLuaMatchBuffer (DetectEngineThreadCtx *det_ctx, const Signature *s, const SigMatchData *smd, uint8_t *buffer, uint32_t buffer_len, uint32_t offset, Flow *f)
 
void DetectLuaPostSetup (Signature *s)
 

Detailed Description

Author
Victor Julien victo.nosp@m.r@in.nosp@m.linia.nosp@m.c.ne.nosp@m.t

Definition in file detect-lua.h.

Function Documentation

int DetectLuaMatchBuffer ( DetectEngineThreadCtx det_ctx,
const Signature s,
const SigMatchData smd,
uint8_t *  buffer,
uint32_t  buffer_len,
uint32_t  offset,
Flow f 
)

Referenced by DetectEngineContentInspection(), and DetectLuaRegister().

Here is the caller graph for this function:

void DetectLuaPostSetup ( Signature s)

Referenced by DetectLuaRegister(), and SigMatchList2DataArray().

Here is the caller graph for this function:

void DetectLuaRegister ( void  )

Registration function for keyword: lua.

Definition at line 74 of file detect-lua.c.

References SigTableElmt_::alias, Flow_::alparser, Flow_::alproto, Signature_::alproto, ALPROTO_DNP3, ALPROTO_DNS, ALPROTO_HTTP, ALPROTO_SMTP, ALPROTO_SSH, ALPROTO_TLS, ALPROTO_UNKNOWN, Flow_::alstate, AppLayerGetProtoName(), AppLayerParserGetTransactionInspectId(), AppLayerParserGetTx(), AppLayerParserGetTxCnt(), AppLayerParserParse(), AppLayerParserThreadCtxAlloc(), AppLayerParserThreadCtxFree(), SigTableElmt_::AppLayerTxMatch, BUG_ON, HtpState_::connp, SigMatch_::ctx, SigMatchData_::ctx, FlowVar_::data, DE_QUIET, SigTableElmt_::desc, DETECT_LUA, DETECT_SM_LIST_MATCH, DETECT_SM_LIST_MAX, DETECT_SM_LIST_PMATCH, DetectAppLayerInspectEngineRegister(), DetectBufferTypeGetByName(), DetectBufferTypeRegister(), DetectEngineAppendSig(), DetectEngineCtxFree(), DetectEngineCtxInit(), DetectEngineInspectGenericList(), DetectEngineThreadCtxInit(), DetectLoadCompleteSigPath(), DetectLuaMatchBuffer(), DetectLuaPostSetup(), DetectLuaRegister(), DetectRegisterThreadCtxFuncs(), DetectThreadCtxGetKeywordThreadCtx(), flags, Flow_::flags, Packet_::flags, DetectEngineCtx_::flags, SigTableElmt_::flags, Packet_::flow, FLOW_DESTROY, FLOW_INITIALIZE, FLOW_IPV4, FLOW_PKT_ESTABLISHED, FLOW_PKT_TOCLIENT, FLOW_PKT_TOSERVER, Packet_::flowflags, FLOWLOCK_UNLOCK, FLOWLOCK_WRLOCK, FlowVarGet(), SigTableElmt_::Free, FlowVar_::fv_int, FlowVar_::fv_str, GET_PKT_DATA, GET_PKT_LEN, Signature_::gid, Signature_::id, Signature_::init_data, SigTableElmt_::Match, SigTableElmt_::name, SigMatch_::next, offset, PacketAlertCheck(), Packet_::payload, Packet_::payload_len, PKT_HAS_FLOW, PKT_STREAM_EST, PrintRawDataFp(), Flow_::proto, Flow_::protoctx, SigTableElmt_::RegisterTests, Signature_::rev, SC_ERR_LUA_ERROR, SCEnter, SCFree, SCLogDebug, SCLogError, SCLogInfo, SCMalloc, SCReturnInt, SCStrdup, SigTableElmt_::Setup, SIG_FLAG_TOCLIENT, SIG_FLAG_TOSERVER, SigGroupBuild(), SIGMATCH_NOT_BUILT, sigmatch_table, SigMatchAlloc(), SigMatchAppendSMToList(), SigMatchSignatures(), SignatureInitData_::smlists, str, STREAM_TOCLIENT, STREAM_TOSERVER, StreamTcpFreeConfig(), StreamTcpInitConfig(), TRUE, tx_id, DetectEngineThreadCtx_::tx_id, type, SigMatch_::type, unlikely, SigTableElmt_::url, UTHBuildPacket(), UTHFreePackets(), UtRegisterTest(), FlowVarTypeStr::value, FlowVarTypeInt_::value, FlowVarTypeStr::value_len, VAR_TYPE_FLOW_INT, VAR_TYPE_FLOW_VAR, and VarNameStoreSetupAdd().

Referenced by DetectLuaRegister(), and SigTableSetup().

Here is the call graph for this function:

Here is the caller graph for this function: