Go to the documentation of this file.
83 if (tags || thresholds || vars)
101 static uint32_t HostHashRowTimeout(HostHashRow *hb,
Host *h,
SCTime_t ts)
115 if (HostHostTimedOut(h,
ts) == 1) {
117 if (h->
hprev != NULL)
119 if (h->
hnext != NULL)
169 if (hb->tail == NULL) {
175 cnt += HostHashRowTimeout(hb, hb->tail,
ts);
uint32_t HostGetActiveCount(void)
int ThresholdHostTimeoutCheck(Host *host, SCTime_t ts)
void HostClearMemory(Host *h)
int ThresholdHostHasThreshold(Host *host)
#define HRLOCK_UNLOCK(fb)
int TagHostHasTag(Host *host)
#define SCMutexUnlock(mut)
int HostHasHostBits(Host *host)
int TagTimeoutCheck(Host *host, SCTime_t ts)
Removes the entries exceeding the max timeout value.
int SRepHostTimedOut(Host *h)
Check if a Host is timed out wrt ip rep, meaning a new version is in place.
void HostMoveToSpare(Host *h)
int HostBitsTimedoutCheck(Host *h, SCTime_t ts)
uint32_t HostTimeoutHash(SCTime_t ts)
time out hosts from the hash
uint32_t HostGetSpareCount(void)
#define HRLOCK_TRYLOCK(fb)
#define SC_ATOMIC_GET(name)
Get the value from the atomic variable.
uint32_t HostSpareQueueGetSize(void)
#define SCMutexTrylock(mut)