#include "flow.h"#include "sfxhash.h"Go to the source code of this file.
Defines | |
| #define | UINT64 unsigned long long | 
Typedefs | |
| typedef _FCSTAT | FCSTAT | 
| typedef _FLOWCACHE | FLOWCACHE | 
Functions | |
| int | flowcache_init (FLOWCACHE *flowcachep, unsigned int rows, int memcap, int datasize, FLOWHASHID hashid) | 
| int | flowcache_destroy (FLOWCACHE *flowcachep) | 
| int | flowcache_releaseflow (FLOWCACHE *flowcachep, FLOW **flowpp) | 
| int | flowcache_newflow (FLOWCACHE *flowcachep, FLOWKEY *keyp, FLOW **flowpp) | 
| int | flowcache_find (FLOWCACHE *flowcachep, FLOWKEY *keyp, FLOW **flowpp, int *direction) | 
| void | flowcache_stats (FILE *stream, FLOWCACHE *flowcachep) | 
| int | flowcache_overhead_bytes (FLOWCACHE *fcp) | 
| int | flowcache_memcap (FLOWCACHE *fcp) | 
| int | flowcache_row_count (FLOWCACHE *fcp) | 
| const char * | flowcache_pname (FLOW_POSITION position) | 
      
  | 
  
| 
 
 Definition at line 8 of file flow_cache.h. Referenced by InitFlowStats(), and ProcessFlowStats().  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  
| 
 
 Definition at line 141 of file flow_cache.c. References FLOW_ENULL, FLOW_SUCCESS, _FLOWCACHE::ipv4_table, NULL, and sfxhash_delete(). Referenced by FlowCleanExit().  | 
  
      
  | 
  ||||||||||||||||||||
| 
 Look for the data in the flow tables. 
 
 
 Definition at line 346 of file flow_cache.c. References FCS_find(), FCS_find_fail(), FCS_find_success(), FCS_revfind(), FLOW_ENULL, FLOW_NOTFOUND, FLOW_SUCCESS, flowkey_normalize(), FROM_INITIATOR, FROM_RESPONDER, _FLOWKEY::init_address, _FLOWKEY::init_port, _FLOWCACHE::ipv4_table, _FLOW::key, NULL, and sfxhash_find(). Referenced by FlowPreprocessor().  | 
  
      
  | 
  ||||||||||||||||||||||||
| 
 
 Definition at line 55 of file flow_cache.c. References FLOW_BADJUJU, FLOW_EINVALID, FLOW_ENOMEM, FLOW_ENULL, FLOW_SUCCESS, flowcache_anrfree(), flowcache_usrfree(), flowkey_hashfcn1(), flowkey_hashfcn2(), flowkeycmp_fcn(), HASH1, HASH2, int(), _FLOWCACHE::ipv4_table, _FLOWCACHE::max_flowbits_bytes, memset, NULL, sfxhash_delete(), sfxhash_new(), and sfxhash_set_keyops(). Referenced by FlowInit().  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  ||||||||||||||||
| 
 
 Definition at line 203 of file flow_cache.c. References _sfxhash_node::data, FCS_new(), FLOW_BADJUJU, FLOW_EINVALID, FLOW_ENOMEM, FLOW_ENULL, flow_init(), flow_printf(), FLOW_SUCCESS, flowcache_mru(), flowkey_normalize(), _FLOWKEY::init_address, init_flowdata(), _FLOWKEY::init_port, _FLOWCACHE::ipv4_table, memset, NULL, _FLOWKEY::protocol, _FLOWKEY::resp_address, _FLOWKEY::resp_port, sfxhash_add(), sfxhash_get_node(), SFXHASH_INTABLE, SFXHASH_NOMEM, and SFXHASH_OK. Referenced by FlowPreprocessor().  | 
  
      
  | 
  
| 
 get the overhead # of bytes 
 
 
 Definition at line 635 of file flow_cache.c. References _FLOWCACHE::ipv4_table, NULL, and sfxhash_overhead_bytes(). Referenced by DisplayFlowConfig(), and flowcache_stats().  | 
  
      
  | 
  
| 
 map a position to a name 
 
 
 Definition at line 407 of file flow_cache.c. References FLOW_MAX. Referenced by flow_callbacks().  | 
  
      
  | 
  ||||||||||||
| 
 
 
 Definition at line 161 of file flow_cache.c. References FLOW_ENULL, FLOW_NOTFOUND, FLOW_SUCCESS, flowkey_normalize(), _FLOWCACHE::ipv4_table, NULL, and sfxhash_remove(). Referenced by CheckFlowShutdown().  | 
  
      
  | 
  
| 
 get the row count 
 
 
 Definition at line 619 of file flow_cache.c. References _FLOWCACHE::ipv4_table, _sfxhash::nrows, and NULL. Referenced by DisplayFlowConfig().  | 
  
      
  | 
  ||||||||||||
 1.4.2