detect/ftpbounce: switch to inspect api v2

pull/5635/head
Victor Julien 6 years ago
parent 0f2c94ffea
commit 197f99a134

@ -57,11 +57,9 @@ static void DetectFtpbounceRegisterTests(void);
#endif #endif
static int g_ftp_request_list_id = 0; static int g_ftp_request_list_id = 0;
static int InspectFtpRequest(ThreadVars *tv, static int InspectFtpRequest(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx,
DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, const struct DetectEngineAppInspectionEngine_ *engine, const Signature *s, Flow *f,
const Signature *s, const SigMatchData *smd, uint8_t flags, void *alstate, void *txv, uint64_t tx_id);
Flow *f, uint8_t flags, void *alstate,
void *txv, uint64_t tx_id);
/** /**
* \brief Registration function for ftpbounce: keyword * \brief Registration function for ftpbounce: keyword
@ -81,19 +79,16 @@ void DetectFtpbounceRegister(void)
g_ftp_request_list_id = DetectBufferTypeRegister("ftp_request"); g_ftp_request_list_id = DetectBufferTypeRegister("ftp_request");
DetectAppLayerInspectEngineRegister("ftp_request", DetectAppLayerInspectEngineRegister2(
ALPROTO_FTP, SIG_FLAG_TOSERVER, 0, "ftp_request", ALPROTO_FTP, SIG_FLAG_TOSERVER, 0, InspectFtpRequest, NULL);
InspectFtpRequest);
} }
static int InspectFtpRequest(ThreadVars *tv, static int InspectFtpRequest(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx,
DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, const struct DetectEngineAppInspectionEngine_ *engine, const Signature *s, Flow *f,
const Signature *s, const SigMatchData *smd, uint8_t flags, void *alstate, void *txv, uint64_t tx_id)
Flow *f, uint8_t flags, void *alstate,
void *txv, uint64_t tx_id)
{ {
return DetectEngineInspectGenericList(tv, de_ctx, det_ctx, s, smd, return DetectEngineInspectGenericList(
f, flags, alstate, txv, tx_id); NULL, de_ctx, det_ctx, s, engine->smd, f, flags, alstate, txv, tx_id);
} }
/** /**

Loading…
Cancel
Save