Go to the documentation of this file.
48 for ( ; gv != NULL; gv = gv->
next) {
61 static int FlowBitAdd(
Flow *
f, uint32_t idx)
79 static void FlowBitRemove(
Flow *
f, uint32_t idx)
95 return FlowBitAdd(
f, idx);
100 FlowBitRemove(
f, idx);
138 static int FlowBitTest01 (
void)
141 memset(&
f, 0,
sizeof(
Flow));
152 static int FlowBitTest02 (
void)
155 memset(&
f, 0,
sizeof(
Flow));
164 static int FlowBitTest03 (
void)
167 memset(&
f, 0,
sizeof(
Flow));
174 FlowBitRemove(&
f, 0);
176 fb = FlowBitGet(&
f, 0);
183 static int FlowBitTest04 (
void)
186 memset(&
f, 0,
sizeof(
Flow));
200 static int FlowBitTest05 (
void)
203 memset(&
f, 0,
sizeof(
Flow));
217 static int FlowBitTest06 (
void)
220 memset(&
f, 0,
sizeof(
Flow));
234 static int FlowBitTest07 (
void)
237 memset(&
f, 0,
sizeof(
Flow));
251 static int FlowBitTest08 (
void)
254 memset(&
f, 0,
sizeof(
Flow));
266 fb = FlowBitGet(&
f, 0);
273 static int FlowBitTest09 (
void)
276 memset(&
f, 0,
sizeof(
Flow));
288 fb = FlowBitGet(&
f, 1);
295 static int FlowBitTest10 (
void)
298 memset(&
f, 0,
sizeof(
Flow));
310 fb = FlowBitGet(&
f, 2);
317 static int FlowBitTest11 (
void)
320 memset(&
f, 0,
sizeof(
Flow));
332 fb = FlowBitGet(&
f, 3);
void GenericVarAppend(GenericVar **list, GenericVar *gv)
#define FAIL_IF_NULL(expr)
Fail a test if expression evaluates to NULL.
void UtRegisterTest(const char *name, int(*TestFn)(void))
Register unit test.
int FlowBitSet(Flow *f, uint32_t idx)
add a flowbit to the flow
void FlowBitRegisterTests(void)
void FlowBitUnset(Flow *f, uint32_t idx)
#define FAIL_IF_NOT_NULL(expr)
Fail a test if expression evaluates to non-NULL.
struct GenericVar_ * next
#define PASS
Pass the test.
void GenericVarRemove(GenericVar **list, GenericVar *gv)
void SCGenericVarFree(GenericVar *gv)
int FlowBitIsset(Flow *f, uint32_t idx)
void FlowBitFree(FlowBit *fb)
int FlowBitIsnotset(Flow *f, uint32_t idx)