Go to the documentation of this file.
49 for ( ; gv != NULL; gv = gv->
next) {
59 static void FlowBitAdd(
Flow *f, uint32_t idx)
61 FlowBit *fb = FlowBitGet(f, idx);
74 static void FlowBitRemove(
Flow *f, uint32_t idx)
76 FlowBit *fb = FlowBitGet(f, idx);
91 FlowBitRemove(f, idx);
96 FlowBit *fb = FlowBitGet(f, idx);
98 FlowBitRemove(f, idx);
108 FlowBit *fb = FlowBitGet(f, idx);
120 FlowBit *fb = FlowBitGet(f, idx);
139 static int FlowBitTest01 (
void)
142 memset(&f, 0,
sizeof(
Flow));
146 FlowBit *fb = FlowBitGet(&f, 0);
153 static int FlowBitTest02 (
void)
156 memset(&f, 0,
sizeof(
Flow));
158 FlowBit *fb = FlowBitGet(&f, 0);
165 static int FlowBitTest03 (
void)
168 memset(&f, 0,
sizeof(
Flow));
172 FlowBit *fb = FlowBitGet(&f,0);
175 FlowBitRemove(&f, 0);
177 fb = FlowBitGet(&f, 0);
184 static int FlowBitTest04 (
void)
187 memset(&f, 0,
sizeof(
Flow));
194 FlowBit *fb = FlowBitGet(&f, 0);
201 static int FlowBitTest05 (
void)
204 memset(&f, 0,
sizeof(
Flow));
211 FlowBit *fb = FlowBitGet(&f, 1);
218 static int FlowBitTest06 (
void)
221 memset(&f, 0,
sizeof(
Flow));
228 FlowBit *fb = FlowBitGet(&f, 2);
235 static int FlowBitTest07 (
void)
238 memset(&f, 0,
sizeof(
Flow));
245 FlowBit *fb = FlowBitGet(&f, 3);
252 static int FlowBitTest08 (
void)
255 memset(&f, 0,
sizeof(
Flow));
262 FlowBit *fb = FlowBitGet(&f,0);
267 fb = FlowBitGet(&f, 0);
274 static int FlowBitTest09 (
void)
277 memset(&f, 0,
sizeof(
Flow));
284 FlowBit *fb = FlowBitGet(&f,1);
289 fb = FlowBitGet(&f, 1);
296 static int FlowBitTest10 (
void)
299 memset(&f, 0,
sizeof(
Flow));
306 FlowBit *fb = FlowBitGet(&f,2);
311 fb = FlowBitGet(&f, 2);
318 static int FlowBitTest11 (
void)
321 memset(&f, 0,
sizeof(
Flow));
328 FlowBit *fb = FlowBitGet(&f,3);
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.
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 FlowBitSet(Flow *f, uint32_t idx)
void GenericVarRemove(GenericVar **list, GenericVar *gv)
void FlowBitToggle(Flow *f, uint32_t idx)
int FlowBitIsset(Flow *f, uint32_t idx)
void FlowBitFree(FlowBit *fb)
void GenericVarFree(GenericVar *gv)
int FlowBitIsnotset(Flow *f, uint32_t idx)