Go to the documentation of this file.
49 for ( ; gv != NULL; gv = gv->
next) {
62 static int FlowBitAdd(
Flow *f, uint32_t idx)
64 FlowBit *fb = FlowBitGet(f, idx);
80 static void FlowBitRemove(
Flow *f, uint32_t idx)
82 FlowBit *fb = FlowBitGet(f, idx);
96 return FlowBitAdd(f, idx);
101 FlowBitRemove(f, idx);
109 FlowBit *fb = FlowBitGet(f, idx);
111 FlowBitRemove(f, idx);
123 FlowBit *fb = FlowBitGet(f, idx);
135 FlowBit *fb = FlowBitGet(f, idx);
154 static int FlowBitTest01 (
void)
157 memset(&f, 0,
sizeof(
Flow));
161 FlowBit *fb = FlowBitGet(&f, 0);
168 static int FlowBitTest02 (
void)
171 memset(&f, 0,
sizeof(
Flow));
173 FlowBit *fb = FlowBitGet(&f, 0);
180 static int FlowBitTest03 (
void)
183 memset(&f, 0,
sizeof(
Flow));
187 FlowBit *fb = FlowBitGet(&f,0);
190 FlowBitRemove(&f, 0);
192 fb = FlowBitGet(&f, 0);
199 static int FlowBitTest04 (
void)
202 memset(&f, 0,
sizeof(
Flow));
209 FlowBit *fb = FlowBitGet(&f, 0);
216 static int FlowBitTest05 (
void)
219 memset(&f, 0,
sizeof(
Flow));
226 FlowBit *fb = FlowBitGet(&f, 1);
233 static int FlowBitTest06 (
void)
236 memset(&f, 0,
sizeof(
Flow));
243 FlowBit *fb = FlowBitGet(&f, 2);
250 static int FlowBitTest07 (
void)
253 memset(&f, 0,
sizeof(
Flow));
260 FlowBit *fb = FlowBitGet(&f, 3);
267 static int FlowBitTest08 (
void)
270 memset(&f, 0,
sizeof(
Flow));
277 FlowBit *fb = FlowBitGet(&f,0);
282 fb = FlowBitGet(&f, 0);
289 static int FlowBitTest09 (
void)
292 memset(&f, 0,
sizeof(
Flow));
299 FlowBit *fb = FlowBitGet(&f,1);
304 fb = FlowBitGet(&f, 1);
311 static int FlowBitTest10 (
void)
314 memset(&f, 0,
sizeof(
Flow));
321 FlowBit *fb = FlowBitGet(&f,2);
326 fb = FlowBitGet(&f, 2);
333 static int FlowBitTest11 (
void)
336 memset(&f, 0,
sizeof(
Flow));
343 FlowBit *fb = FlowBitGet(&f,3);
348 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.
bool FlowBitToggle(Flow *f, uint32_t idx)
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)
int FlowBitIsset(Flow *f, uint32_t idx)
void FlowBitFree(FlowBit *fb)
void GenericVarFree(GenericVar *gv)
int FlowBitIsnotset(Flow *f, uint32_t idx)