Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

unique_tracker.h

Go to the documentation of this file.
00001 #ifndef _UNIQUE_TRACKER_H
00002 #define _UNIQUE_TRACKER_H
00003 
00004 #include "flow.h"
00005 #include "sfxhash.h"
00006 
00007 typedef enum {
00008     UT_OLD,
00009     UT_NEW
00010 } UT_TYPE;
00011 
00012 
00013 typedef struct _UNIQUE_TRACKER
00014 {
00015     SFXHASH *ipv4_table;
00016 } UNIQUE_TRACKER;
00017 
00018 int ut_init(UNIQUE_TRACKER *utp, unsigned int rows, int memcap);
00019 int ut_destroy(UNIQUE_TRACKER *utp);
00020 int ut_check(UNIQUE_TRACKER *utp, FLOWKEY *keyp, UT_TYPE *retval);
00021 void ut_stats(UNIQUE_TRACKER *utp, int dumpall);
00022 int ut_memcap(UNIQUE_TRACKER *utp);
00023 int ut_row_count(UNIQUE_TRACKER *utp);
00024 int ut_overhead_bytes(UNIQUE_TRACKER *sbp);
00025 #endif /* _UNIQUE_TRACKER_H */
00026 

Generated on Sun May 14 14:51:15 2006 by  doxygen 1.4.2