Go to the documentation of this file.
36 static int g_ftp_reply_received_buffer_id = 0;
46 const DetectFtpReplyReceivedData *ftprrd = (
const DetectFtpReplyReceivedData *)
m;
47 if (ftprrd->received == tx->
done)
62 static DetectFtpReplyReceivedData *DetectFtpdataParse(
const char *optstr)
64 DetectFtpReplyReceivedData *frrd = SCFTPParseReplyReceived(optstr);
66 SCLogError(
"invalid value; specify yes or no");
86 DetectFtpReplyReceivedData *frrd = DetectFtpdataParse(
str);
91 DetectFtpReplyReceivedFree(
de_ctx, frrd);
96 g_ftp_reply_received_buffer_id) == NULL) {
97 DetectFtpReplyReceivedFree(
de_ctx, frrd);
111 DetectFtpReplyReceivedData *frrd = (DetectFtpReplyReceivedData *)ptr;
112 SCFTPFreeReplyReceivedData(frrd);
void DetectFtpReplyReceivedRegister(void)
Registration function for ftp.reply_received: 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 SCDetectSignatureSetAppProto(Signature *s, AppProto alproto)
#define SIG_FLAG_TOCLIENT
int(* Setup)(DetectEngineCtx *, Signature *, const char *)
int DetectBufferTypeGetByName(const char *name)
SigMatch * SCSigMatchAppendSMToList(DetectEngineCtx *de_ctx, Signature *s, uint16_t type, SigMatchCtx *ctx, const int list)
Append a SigMatch to the list type.
FtpCommandInfo command_descriptor
FtpRequestCommand command_code
@ DETECT_FTP_REPLY_RECEIVED
Used to start a pointer to SigMatch context Should never be dereferenced without casting to something...
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.