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)
51 static void FlowVarUpdateFloat(
FlowVar *fv,
double value)
67 for ( ; gv != NULL; gv = gv->
next) {
71 if (fv->
keylen == keylen && memcmp(key, fv->
key, keylen) == 0) {
91 for ( ; gv != NULL; gv = gv->
next) {
137 FlowVarUpdateStr(fv, value, size);
158 FlowVarUpdateFloat(fv, value);
178 FlowVarUpdateInt(fv, value);
224 SCLogDebug(
"Name idx \"%" PRIu32
"\", Value \"%" PRIu32
"\"", fv->
idx,
227 SCLogDebug(
"Unknown data type at flowvars\n");
FlowVarTypeFloat fv_float
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_::@124 data
void FlowVarPrint(GenericVar *gv)
#define FLOWVAR_TYPE_FLOAT
uint8_t FlowVarKeyLenType
void FlowVarAddInt(Flow *f, uint32_t idx, uint32_t value)
void FlowVarAddIntNoLock(Flow *f, uint32_t idx, uint32_t value)
void FlowVarAddFloat(Flow *f, uint32_t idx, double 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.