#include "flow.h"
#include "sfxhash.h"
Go to the source code of this file.
Typedefs | |
typedef _UNIQUE_TRACKER | UNIQUE_TRACKER |
Enumerations | |
enum | UT_TYPE { UT_OLD, UT_NEW } |
Functions | |
int | ut_init (UNIQUE_TRACKER *utp, unsigned int rows, int memcap) |
int | ut_destroy (UNIQUE_TRACKER *utp) |
int | ut_check (UNIQUE_TRACKER *utp, FLOWKEY *keyp, UT_TYPE *retval) |
void | ut_stats (UNIQUE_TRACKER *utp, int dumpall) |
int | ut_memcap (UNIQUE_TRACKER *utp) |
int | ut_row_count (UNIQUE_TRACKER *utp) |
int | ut_overhead_bytes (UNIQUE_TRACKER *sbp) |
|
|
|
Definition at line 7 of file unique_tracker.h. |
|
Determine if a flowkey is sufficiently unique to be called new This assumes that sfxhash_add performs a splay to the top on an INTABLE add. This must be updated if that's ever changed.
Definition at line 98 of file unique_tracker.c. References _UT_KEY::dip, _UT_KEY::dport, FLOW_ENULL, FLOW_SUCCESS, _FLOWKEY::init_address, _UNIQUE_TRACKER::ipv4_table, NULL, _FLOWKEY::protocol, _UT_KEY::protocol, _FLOWKEY::resp_address, _FLOWKEY::resp_port, sfxhash_add(), SFXHASH_INTABLE, SFXHASH_NOMEM, SFXHASH_OK, _UT_KEY::sip, UT_NEW, and UT_OLD. Referenced by flowps_get_score(). |
|
Destroy a table completely
Definition at line 74 of file unique_tracker.c. References FLOW_ENULL, FLOW_SUCCESS, _UNIQUE_TRACKER::ipv4_table, and sfxhash_delete(). Referenced by flowps_destroy(), and flowps_init(). |
|
Definition at line 38 of file unique_tracker.c. References FLOW_ENOMEM, FLOW_ENULL, flow_printf(), FLOW_SUCCESS, _UNIQUE_TRACKER::ipv4_table, memset, NULL, s_debug, sfxhash_new(), and ut_init_entry(). Referenced by flowps_init(). |
|
get the memcap
Definition at line 222 of file unique_tracker.c. References _UNIQUE_TRACKER::ipv4_table, _sfxhash::mc, MEMCAP::memcap, and NULL. Referenced by FlowPSOutputConfig(), and ut_stats(). |
|
get the overhead # of bytes
Definition at line 252 of file unique_tracker.c. References _UNIQUE_TRACKER::ipv4_table, NULL, and sfxhash_overhead_bytes(). Referenced by FlowPSOutputConfig(), and ut_stats(). |
|
get the # of rows in table
Definition at line 237 of file unique_tracker.c. References _UNIQUE_TRACKER::ipv4_table, _sfxhash::nrows, and NULL. Referenced by FlowPSOutputConfig(). |
|
Definition at line 190 of file unique_tracker.c. References calc_percent(), flow_printf(), _UNIQUE_TRACKER::ipv4_table, sfxhash_anr_count(), sfxhash_count(), sfxhash_find_fail(), sfxhash_find_success(), sfxhash_find_total(), unique_tracker_dump(), ut_memcap(), and ut_overhead_bytes(). Referenced by flowps_stats(). |