Go to the documentation of this file.
45 #define KEYWORD_NAME "ftp.dynamic_port"
46 #define KEYWORD_DOC "ftp-keywords.html#ftp-dynamic_port"
47 #define BUFFER_NAME "ftp.dynamic_port"
48 #define BUFFER_DESC "ftp dynamic_port"
50 static int g_ftp_dynport_buffer_id = 0;
52 static DetectU16Data *DetectFtpDynamicPortParse(
const char *rawstr)
54 return SCDetectU16Parse(rawstr);
73 SCLogDebug(
"low %u hi %u", fdp->arg1, fdp->arg2);
75 g_ftp_dynport_buffer_id) == NULL) {
76 DetectFtpDynamicPortFree(
de_ctx, fdp);
93 SCLogDebug(
"Checking for match between rule value(s) %u, %u with actual value %d", ftpd->arg1,
int DetectSignatureSetAppProto(Signature *s, AppProto alproto)
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 *)
#define SIG_FLAG_TOCLIENT
int(* Setup)(DetectEngineCtx *, Signature *, const char *)
int DetectBufferTypeGetByName(const char *name)
#define SIG_FLAG_TOSERVER
FtpCommandInfo command_descriptor
FtpRequestCommand command_code
Used to start a pointer to SigMatch context Should never be dereferenced without casting to something...
int DetectU16Match(const uint16_t parg, const DetectUintData_u16 *du16)
void DetectFtpDynamicPortRegister(void)
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.
DetectUintData_u16 DetectU16Data