Project

General

Profile

Actions

Bug #189

closed

Engine fails to build with ./configure --enable-profiling

Added by Will Metcalf over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Normal
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

Looks like match definition needs to be moved outside of if{} block...

detect-engine-state.c: In function ‘DeStateDetectContinueDetection’:
detect-engine-state.c:514: error: ‘match’ undeclared (first use in this function)
detect-engine-state.c:514: error: (Each undeclared identifier is reported only once
detect-engine-state.c:514: error: for each function it appears in.)
make2: * [detect-engine-state.o] Error 1
make2: Leaving directory `/home/coz/downloads/oisfnew062510/src'
make1:
[all-recursive] Error 1
make1: Leaving directory `/home/coz/downloads/oisfnew062510'
make: *
* [all] Error 2

if (item->nm != NULL) {
SigMatch sm;
int match = 0;
for (sm = item->nm; sm != NULL; sm = sm->next) {
match = sigmatch_table[sm->type].AppLayerMatch(tv,
det_ctx, f, flags, alstate, s, sm);
/
no match, break out */
if (match == 0) {
item->nm = sm;
det_ctx->de_state_sig_array[item->sid] = DE_STATE_MATCH_PARTIAL;
SCLogDebug("state set to %s", DeStateMatchResultToString(DE_STATE_MATCH_PARTIAL));
break;
/* match, and no more sm's /
} else if (sm->next == NULL) {
/
mark the sig as matched */
item->nm = NULL;
if (!appinspect || (appinspect == appmatch)) {
det_ctx->de_state_sig_array[item->sid] = DE_STATE_MATCH_NEW;
SCLogDebug("state set to s", DeStateMatchResultToString(DE_STATE_MATCH_NEW));
} else {
det_ctx->de_state_sig_array[item->sid] = DE_STATE_MATCH_PARTIAL;
SCLogDebug("state set to %s", DeStateMatchResultToString(DE_STATE_MATCH_PARTIAL));
}
}
}
} else {
if (appinspect > 0 &x%x
(appinspect == appmatch)) {
det_ctx->de_state_sig_array[item->sid] = DE_STATE_MATCH_NEW;
SCLogDebug("state set to s", DeStateMatchResultToString(DE_STATE_MATCH_NEW));
} else if (uinspect &x%x
!umatch) {
det_ctx->de_state_sig_array[item->sid] = DE_STATE_MATCH_PARTIAL;
SCLogDebug("state set to %s", DeStateMatchResultToString(DE_STATE_MATCH_PARTIAL));
}
}
SCLogDebug("signature %"PRIu32" match state %s",
s->id, DeStateMatchResultToString(det_ctx->de_state_sig_array[item->sid]));
RULE_PROFILING_END(s, match);

Files

Actions

Also available in: Atom PDF