Go to the documentation of this file.
49 for ( ; gv != NULL; gv = gv->
next) {
62 static int FlowBitAdd(
Flow *f, uint32_t idx)
80 static void FlowBitRemove(
Flow *f, uint32_t idx)
96 return FlowBitAdd(f, idx);
101 FlowBitRemove(f, idx);
139 static int FlowBitTest01 (
void)
142 memset(&f, 0,
sizeof(
Flow));
153 static int FlowBitTest02 (
void)
156 memset(&f, 0,
sizeof(
Flow));
165 static int FlowBitTest03 (
void)
168 memset(&f, 0,
sizeof(
Flow));
175 FlowBitRemove(&f, 0);
177 fb = FlowBitGet(&f, 0);
184 static int FlowBitTest04 (
void)
187 memset(&f, 0,
sizeof(
Flow));
201 static int FlowBitTest05 (
void)
204 memset(&f, 0,
sizeof(
Flow));
218 static int FlowBitTest06 (
void)
221 memset(&f, 0,
sizeof(
Flow));
235 static int FlowBitTest07 (
void)
238 memset(&f, 0,
sizeof(
Flow));
252 static int FlowBitTest08 (
void)
255 memset(&f, 0,
sizeof(
Flow));
267 fb = FlowBitGet(&f, 0);
274 static int FlowBitTest09 (
void)
277 memset(&f, 0,
sizeof(
Flow));
289 fb = FlowBitGet(&f, 1);
296 static int FlowBitTest10 (
void)
299 memset(&f, 0,
sizeof(
Flow));
311 fb = FlowBitGet(&f, 2);
318 static int FlowBitTest11 (
void)
321 memset(&f, 0,
sizeof(
Flow));
333 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)