mpm ua: remove unused function args

pull/2310/head
Victor Julien 10 years ago
parent 704afeb078
commit 6d54b70db4

@ -69,14 +69,12 @@
* \retval ret Number of matches.
*/
static inline uint32_t HttpUAPatternSearch(DetectEngineThreadCtx *det_ctx,
const uint8_t *ua, const uint32_t ua_len,
const uint8_t flags)
const uint8_t *ua, const uint32_t ua_len)
{
SCEnter();
uint32_t ret = 0;
DEBUG_VALIDATE_BUG_ON(flags & STREAM_TOCLIENT);
DEBUG_VALIDATE_BUG_ON(det_ctx->sgh->mpm_huad_ctx_ts == NULL);
if (ua_len >= det_ctx->sgh->mpm_huad_ctx_ts->minlen) {
@ -88,9 +86,7 @@ static inline uint32_t HttpUAPatternSearch(DetectEngineThreadCtx *det_ctx,
SCReturnUInt(ret);
}
int DetectEngineRunHttpUAMpm(DetectEngineThreadCtx *det_ctx, Flow *f,
HtpState *htp_state, uint8_t flags,
void *txv, uint64_t idx)
int DetectEngineRunHttpUAMpm(DetectEngineThreadCtx *det_ctx, void *txv)
{
uint32_t cnt = 0;
htp_tx_t *tx = (htp_tx_t *)txv;
@ -105,7 +101,7 @@ int DetectEngineRunHttpUAMpm(DetectEngineThreadCtx *det_ctx, Flow *f,
}
cnt = HttpUAPatternSearch(det_ctx,
(const uint8_t *)bstr_ptr(h->value),
bstr_len(h->value), flags);
bstr_len(h->value));
end:
return cnt;
}

@ -31,9 +31,9 @@ int DetectEngineInspectHttpUA(ThreadVars *tv,
Signature *s, Flow *f, uint8_t flags,
void *alstate,
void *tx, uint64_t tx_id);
int DetectEngineRunHttpUAMpm(DetectEngineThreadCtx *det_ctx, Flow *f,
HtpState *htp_state, uint8_t flags,
void *tx, uint64_t idx);
int DetectEngineRunHttpUAMpm(DetectEngineThreadCtx *det_ctx, void *txv);
void DetectEngineHttpUARegisterTests(void);
#endif /* __DETECT_ENGINE_HUA_H__ */

@ -937,7 +937,7 @@ static inline void DetectMpmPrefilter(DetectEngineCtx *de_ctx,
}
if (det_ctx->sgh->flags & SIG_GROUP_HEAD_MPM_HUAD) {
PACKET_PROFILING_DETECT_START(p, PROF_DETECT_MPM_HUAD);
DetectEngineRunHttpUAMpm(det_ctx, p->flow, alstate, flags, tx, idx);
DetectEngineRunHttpUAMpm(det_ctx, tx);
PACKET_PROFILING_DETECT_END(p, PROF_DETECT_MPM_HUAD);
}
if (det_ctx->sgh->flags & SIG_GROUP_HEAD_MPM_HHD) {

Loading…
Cancel
Save