suricata
defrag-timeout.c File Reference
#include "suricata-common.h"
#include "decode.h"
#include "defrag.h"
#include "defrag-hash.h"
#include "defrag-timeout.h"
Include dependency graph for defrag-timeout.c:

Go to the source code of this file.

Functions

int DefragTrackerTimedOut (DefragTracker *dt, SCTime_t ts)
 
uint32_t DefragTimeoutHash (SCTime_t ts)
 time out tracker from the hash More...
 

Detailed Description

Function Documentation

◆ DefragTimeoutHash()

uint32_t DefragTimeoutHash ( SCTime_t  ts)

time out tracker from the hash

Parameters
tstimestamp
Return values
cntnumber of timed out tracker

Definition at line 122 of file defrag-timeout.c.

References cnt, defrag_config, defragtracker_hash, DRLOCK_TRYLOCK, DRLOCK_UNLOCK, DefragConfig_::hash_size, and DefragTrackerHashRow_::head.

◆ DefragTrackerTimedOut()

int DefragTrackerTimedOut ( DefragTracker dt,
SCTime_t  ts 
)

never prune a trackers that is used by a packet we are currently processing in one of the threads

Definition at line 39 of file defrag-timeout.c.

References DefragTracker_::remove, SC_ATOMIC_GET, SCTIME_CMP_GT, DefragTracker_::timeout, and ts.