|
|
|
@ -66,14 +66,14 @@ void FlowVarAddStr(Flow *f, uint8_t idx, uint8_t *value, uint16_t size) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
out:
|
|
|
|
out:
|
|
|
|
mutex_unlock(&f->m);
|
|
|
|
SCMutexUnlock(&f->m);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* add a flowvar to the flow, or update it */
|
|
|
|
/* add a flowvar to the flow, or update it */
|
|
|
|
void FlowVarAddInt(Flow *f, uint8_t idx, uint32_t value) {
|
|
|
|
void FlowVarAddInt(Flow *f, uint8_t idx, uint32_t value) {
|
|
|
|
//printf("Adding flow var \"%s\" with value(%" PRId32 ") \"%s\"\n", name, size, value);
|
|
|
|
//printf("Adding flow var \"%s\" with value(%" PRId32 ") \"%s\"\n", name, size, value);
|
|
|
|
|
|
|
|
|
|
|
|
mutex_lock(&f->m);
|
|
|
|
SCMutexLock(&f->m);
|
|
|
|
|
|
|
|
|
|
|
|
FlowVar *fv = FlowVarGet(f, idx);
|
|
|
|
FlowVar *fv = FlowVarGet(f, idx);
|
|
|
|
if (fv == NULL) {
|
|
|
|
if (fv == NULL) {
|
|
|
|
|