/* 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); }
/* empty out active entries */ void detection_filter_reset_active(void) { if (detection_filter_hash == NULL) return; sfxhash_make_empty(detection_filter_hash); }
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); }
void SFRF_Flush (void) { if ( rf_hash ) sfxhash_make_empty(rf_hash); }
/**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); }