Exemple #1
0
/* empty out active entries */
void sfthreshold_reset_active(void)
{
    if (thd_runtime == NULL)
        return;

    if (thd_runtime->ip_nodes != NULL)
        sfxhash_make_empty(thd_runtime->ip_nodes);

    if (thd_runtime->ip_gnodes != NULL)
        sfxhash_make_empty(thd_runtime->ip_gnodes);
}
Exemple #2
0
/* empty out active entries */
void detection_filter_reset_active(void)
{
    if (detection_filter_hash == NULL)
        return;

    sfxhash_make_empty(detection_filter_hash);
}
Exemple #3
0
int InitFlowIPStats(SFFLOW *sfFlow)
{
    static char first = 1;

    if (first)
    {
        sfFlow->ipMap = sfxhash_new(1021, sizeof(sfSFSKey), sizeof(sfSFSValue),
                perfmon_config->flowip_memcap, 1, NULL, NULL, 1);

        first = 0;
    }
    else
    {
        sfxhash_make_empty(sfFlow->ipMap);
    }

    return 0;
}
/**
**  Reset the portscan infrastructure.
*/
void ps_reset(void)
{
    if (portscan_hash != NULL)
        sfxhash_make_empty(portscan_hash);
}
Exemple #5
0
void SFRF_Flush (void)
{
    if ( rf_hash )
        sfxhash_make_empty(rf_hash);
}
Exemple #6
0
/**Reset all data structures and free all memory.
 */
void TagCacheReset(void)
{
    sfxhash_make_empty(ssn_tag_cache_ptr);
    sfxhash_make_empty(host_tag_cache_ptr);
}