Go to the documentation of this file.
36 static void FlowVarUpdateStr(
FlowVar *fv, uint8_t *value, uint16_t size)
45 static void FlowVarUpdateInt(
FlowVar *fv, uint32_t value)
61 for ( ; gv != NULL; gv = gv->
next) {
65 if (fv->
keylen == keylen && memcmp(key, fv->
key, keylen) == 0) {
85 for ( ; gv != NULL; gv = gv->
next) {
131 FlowVarUpdateStr(fv, value, size);
152 FlowVarUpdateInt(fv, value);
198 SCLogDebug(
"Name idx \"%" PRIu32
"\", Value \"%" PRIu32
"\"", fv->
idx,
201 SCLogDebug(
"Unknown data type at flowvars\n");
void GenericVarAppend(GenericVar **list, GenericVar *gv)
FlowVar * FlowVarGetByKey(Flow *f, const uint8_t *key, FlowVarKeyLenType keylen)
get the flowvar with index 'idx' from the flow
void FlowVarFree(FlowVar *fv)
void FlowVarAddKeyValue(Flow *f, uint8_t *key, FlowVarKeyLenType keylen, uint8_t *value, uint16_t size)
struct GenericVar_ * next
void FlowVarAddIdValue(Flow *f, uint32_t idx, uint8_t *value, uint16_t size)
union FlowVar_::@107 data
void FlowVarPrint(GenericVar *gv)
uint8_t FlowVarKeyLenType
void FlowVarAddInt(Flow *f, uint32_t idx, uint32_t value)
void FlowVarAddIntNoLock(Flow *f, uint32_t idx, uint32_t value)
FlowVar * FlowVarGet(Flow *f, uint32_t idx)
get the flowvar with index 'idx' from the flow
int SCLogDebugEnabled(void)
Returns whether debug messages are enabled to be logged or not.