Go to the documentation of this file.
53 static int g_nfs_request_buffer_id = 0;
56 uint8_t,
void *,
void *,
const Signature *,
77 SCLogDebug(
"g_nfs_request_buffer_id %d", g_nfs_request_buffer_id);
105 rs_nfs_tx_get_version(txv, &
version);
106 SCLogDebug(
"version %u mode %u lo %u hi %u",
version, dd->mode, dd->arg1, dd->arg2);
121 static DetectU32Data *DetectNfsVersionParse(
const char *rawstr)
123 return rs_detect_u32_parse_inclusive(rawstr);
156 SCLogDebug(
"low %u hi %u", dd->arg1, dd->arg2);
158 g_nfs_request_buffer_id) == NULL) {
164 DetectNfsVersionFree(
de_ctx, dd);
176 rs_detect_u32_free(ptr);
int DetectSignatureSetAppProto(Signature *s, AppProto alproto)
int DetectU32Match(const uint32_t parg, const DetectUintData_u32 *du32)
void DetectNfsVersionRegister(void)
Registration function for nfs_procedure keyword.
SigTableElmt * sigmatch_table
void(* Free)(DetectEngineCtx *, void *)
main detection engine ctx
int(* AppLayerTxMatch)(DetectEngineThreadCtx *, Flow *, uint8_t flags, void *alstate, void *txv, const Signature *, const SigMatchCtx *)
int(* Setup)(DetectEngineCtx *, Signature *, const char *)
int DetectBufferTypeGetByName(const char *name)
#define SIG_FLAG_TOSERVER
Used to start a pointer to SigMatch context Should never be dereferenced without casting to something...
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 DetectAppLayerInspectEngineRegister(const char *name, AppProto alproto, uint32_t dir, int progress, InspectEngineFuncPtr Callback, InspectionBufferGetDataPtr GetData)
Registers an app inspection engine.
SigMatch * SigMatchAppendSMToList(DetectEngineCtx *de_ctx, Signature *s, uint16_t type, SigMatchCtx *ctx, const int list)
Append a SigMatch to the list type.