|
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 "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 48 of file ippair-bit.c.
Definition at line 170 of file ippair-bit.c.
Definition at line 156 of file ippair-bit.c.
| void IPPairBitRegisterTests | ( | void | ) |
Definition at line 468 of file ippair-bit.c.
References UtRegisterTest().

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

Definition at line 146 of file ippair-bit.c.
| void IPPairBitUnset | ( | IPPair * | h, |
| uint32_t | idx | ||
| ) |
Definition at line 138 of file ippair-bit.c.
| int IPPairHasBits | ( | IPPair * | ippair | ) |
Definition at line 57 of file ippair-bit.c.
References SCIPPairGetStorageById().
