|
suricata
|
#include "suricata-common.h"#include "threads.h"#include "ippair-bit.h"#include "ippair.h"#include "detect.h"#include "util-var.h"#include "util-debug.h"#include "util-unittest.h"#include "ippair-storage.h"
Go to the source code of this file.
Functions | |
| void | IPPairBitInitCtx (void) |
| int | IPPairHasBits (IPPair *ippair) |
| int | IPPairBitsTimedoutCheck (IPPair *h, SCTime_t ts) |
| void | IPPairBitSet (IPPair *h, uint32_t idx, SCTime_t expire) |
| void | IPPairBitUnset (IPPair *h, uint32_t idx) |
| void | IPPairBitToggle (IPPair *h, uint32_t idx, SCTime_t expire) |
| int | IPPairBitIsset (IPPair *h, uint32_t idx, SCTime_t ts) |
| int | IPPairBitIsnotset (IPPair *h, uint32_t idx, SCTime_t ts) |
| void | IPPairBitRegisterTests (void) |
Implements per ippair bits. Actually, not a bit, but called that way because of Snort's flowbits. It's a binary storage.
move away from a linked list implementation
use different datatypes, such as string, int, etc.
Definition in file ippair-bit.c.
| void IPPairBitInitCtx | ( | void | ) |
Definition at line 49 of file ippair-bit.c.
Definition at line 171 of file ippair-bit.c.
Definition at line 157 of file ippair-bit.c.
| void IPPairBitRegisterTests | ( | void | ) |
Definition at line 469 of file ippair-bit.c.
References UtRegisterTest().

Definition at line 131 of file ippair-bit.c.
| 1 | ippair timed out wrt xbits |
| 0 | ippair still has active (non-expired) xbits |
Definition at line 67 of file ippair-bit.c.
References IPPairGetStorageById().

Definition at line 147 of file ippair-bit.c.
| void IPPairBitUnset | ( | IPPair * | h, |
| uint32_t | idx | ||
| ) |
Definition at line 139 of file ippair-bit.c.
| int IPPairHasBits | ( | IPPair * | ippair | ) |
Definition at line 58 of file ippair-bit.c.
References IPPairGetStorageById().
