46#define KEYWORD_NAME "ftp.command_data"
47#define KEYWORD_DOC "ftp-keywords.html#ftp-command_data"
48#define BUFFER_NAME "ftp.command_data"
49#define BUFFER_DESC "ftp command_data"
51static int g_ftp_cmd_data_buffer_id = 0;
64static bool DetectFTPCommandDataGetData(
65 const void *txv,
const uint8_t _flow_flags,
const uint8_t **buffer, uint32_t *buffer_len)
77 *buffer = tx->
request + b_len + 1;
79 SCLogDebug(
"command data: \"%s\" [bytes %d]", *buffer, *buffer_len);
94 "sticky buffer to match on the FTP command data buffer";
int SCDetectBufferSetActiveList(DetectEngineCtx *de_ctx, Signature *s, const int list)
int SCDetectHelperBufferMpmRegister(const char *name, const char *desc, AppProto alproto, uint8_t direction, InspectionSingleBufferGetDataPtr GetData)
@ DETECT_FTP_COMMAND_DATA
void DetectBufferTypeSetDescriptionByName(const char *name, const char *desc)
int DetectBufferTypeGetByName(const char *name)
void DetectFtpCommandDataRegister(void)
int SCDetectSignatureSetAppProto(Signature *s, AppProto alproto)
SigTableElmt * sigmatch_table
main detection engine ctx
FtpCommandInfo command_descriptor
FtpRequestCommand command_code
int(* Setup)(DetectEngineCtx *, Signature *, const char *)