Go to the documentation of this file.
39 static void DetectSNMPVersionRegisterTests(
void);
41 static int g_snmp_version_buffer_id = 0;
44 uint8_t,
void *,
void *,
const Signature *,
97 rs_snmp_tx_get_version(txv, &
version);
113 static DetectU32Data *DetectSNMPVersionParse(
const char *rawstr)
140 dd = DetectSNMPVersionParse(rawstr);
153 sm->
ctx = (
void *)dd;
160 DetectSNMPVersionFree(
de_ctx, dd);
172 rs_detect_u32_free(ptr);
int DetectSignatureSetAppProto(Signature *s, AppProto alproto)
void SigMatchAppendSMToList(Signature *s, SigMatch *new, const int list)
Append a SigMatch to the list type.
int DetectU32Match(const uint32_t parg, const DetectUintData_u32 *du32)
void(* Free)(DetectEngineCtx *, void *)
DetectUintData_u32 * DetectU32Parse(const char *u32str)
This function is used to parse u32 options passed via some u32 keyword.
main detection engine ctx
int(* AppLayerTxMatch)(DetectEngineThreadCtx *, Flow *, uint8_t flags, void *alstate, void *txv, const Signature *, const SigMatchCtx *)
#define SIG_FLAG_TOCLIENT
int(* Setup)(DetectEngineCtx *, Signature *, const char *)
int DetectBufferTypeGetByName(const char *name)
#define SIG_FLAG_TOSERVER
void DetectAppLayerInspectEngineRegister2(const char *name, AppProto alproto, uint32_t dir, int progress, InspectEngineFuncPtr2 Callback2, InspectionBufferGetDataPtr GetData)
register inspect engine at start up time
int(* Match)(DetectEngineThreadCtx *, Packet *, const Signature *, const SigMatchCtx *)
SigMatch * SigMatchAlloc(void)
Used to start a pointer to SigMatch context Should never be dereferenced without casting to something...
SigTableElmt sigmatch_table[DETECT_TBLSIZE]
DetectUintData_u32 DetectU32Data
uint8_t DetectEngineInspectGenericList(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, const struct DetectEngineAppInspectionEngine_ *engine, const Signature *s, Flow *f, uint8_t flags, void *alstate, void *txv, uint64_t tx_id)
Do the content inspection & validation for a signature.
#define SCLogError(...)
Macro used to log ERROR messages.
void DetectSNMPVersionRegister(void)
Registration function for snmp.procedure keyword.
a single match condition for a signature
void(* RegisterTests)(void)