00001 #ifndef SNORT_STREAM4_SESSION_H_ 00002 #define SNORT_STREAM4_SESSION_H_ 00003 00004 #ifdef USE_HASH_TABLE 00005 void InitSessionCache(); 00006 Session *GetSession(Packet *); 00007 //Session *InsertSession(Packet *, Session *); 00008 Session *GetNewSession(Packet *); 00009 Session *RemoveSession(Session *); 00010 void PrintSessionCache(); 00011 int PruneSessionCache(u_int32_t thetime, int mustdie, Session *save_me); 00012 int GetSessionCount(); 00013 #endif 00014 void PurgeSessionCache(); 00015 int DumpStateTable(const char *); 00016 00017 #ifdef GIDS 00018 int TruncSessionCache(u_int32_t, int, Session *); 00019 #endif /* GIDS */ 00020 00021 #if defined(USE_HASH_TABLE) || defined(USE_SPLAY_TREE) 00022 Session *GetSession(Packet *); 00023 #endif 00024 00025 #endif /* SNORT_STREAM4_SESSION_H_ */