|
suricata
|
#include "suricata-common.h"#include "threads.h"#include "host-bit.h"#include "host.h"#include "detect.h"#include "util-var.h"#include "util-debug.h"#include "util-unittest.h"#include "host-storage.h"
Go to the source code of this file.
Functions | |
| void | HostBitInitCtx (void) |
| int | HostHasHostBits (Host *host) |
| int | HostBitsTimedoutCheck (Host *h, SCTime_t ts) |
| void | HostBitSet (Host *h, uint32_t idx, SCTime_t expire) |
| void | HostBitUnset (Host *h, uint32_t idx) |
| void | HostBitToggle (Host *h, uint32_t idx, SCTime_t expire) |
| int | HostBitIsset (Host *h, uint32_t idx, SCTime_t ts) |
| int | HostBitIsnotset (Host *h, uint32_t idx, SCTime_t ts) |
| int | HostBitList (Host *h, XBit **iter) |
| void | HostBitRegisterTests (void) |
Implements per host 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 host-bit.c.
| void HostBitInitCtx | ( | void | ) |
Definition at line 49 of file host-bit.c.
Referenced by RunUnittests().

Definition at line 170 of file host-bit.c.
Definition at line 157 of file host-bit.c.
Definition at line 184 of file host-bit.c.
References HostGetStorageById().

| void HostBitRegisterTests | ( | void | ) |
Definition at line 574 of file host-bit.c.
References UtRegisterTest().

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

Definition at line 147 of file host-bit.c.
| void HostBitUnset | ( | Host * | h, |
| uint32_t | idx | ||
| ) |
Definition at line 139 of file host-bit.c.
| int HostHasHostBits | ( | Host * | host | ) |
Definition at line 58 of file host-bit.c.
References HostGetStorageById().
