template<bool T>
static inline void execute(
- Packet* p, PHInstance* const * prep, unsigned num)
+ Packet* p, PHInstance* const * prep, unsigned num, bool probe = false)
{
Stopwatch<SnortClock> timer;
for ( unsigned i = 0; i < num; ++i, ++prep )
"exit %s, elapsed time: %" PRId64" usec\n", inspector_name, TO_USECS(timer.get()));
// must check between each ::execute()
- if ( p->disable_inspect )
+ if ( !probe && p->disable_inspect )
return;
}
}
FrameworkPolicy* fp = policy->framework_policy;
if ( !trace_enabled(snort_trace, TRACE_INSPECTOR_MANAGER, DEFAULT_TRACE_LOG_LEVEL, p) )
- ::execute<false>(p, fp->probe.vec, fp->probe.num);
+ ::execute<false>(p, fp->probe.vec, fp->probe.num, true);
else
{
Stopwatch<SnortClock> timer;
timer.start();
- ::execute<true>(p, fp->probe.vec, fp->probe.num);
+ ::execute<true>(p, fp->probe.vec, fp->probe.num, true);
trace_ulogf(snort_trace, TRACE_INSPECTOR_MANAGER, p,
"end inspection, %s, packet %" PRId64", context %" PRId64", total time: %" PRId64" usec\n",