diff options
Diffstat (limited to 'src/tsg_entry.h')
| -rw-r--r-- | src/tsg_entry.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/tsg_entry.h b/src/tsg_entry.h index e5f1cea..4a19e99 100644 --- a/src/tsg_entry.h +++ b/src/tsg_entry.h @@ -156,6 +156,34 @@ typedef enum tsg_statis_field_id STATIS_MAX
}tsg_statis_field_id_t;
+enum TRAFFIC_INFO_IDX
+{
+ TRAFFIC_INFO_ALLOW=0,
+ TRAFFIC_INFO_DENY,
+ TRAFFIC_INFO_MONITOR,
+ TRAFFIC_INFO_INTERCEPT,
+ TRAFFIC_INFO_MAX
+};
+
+struct tsg_statistic
+{
+ int cycle;
+ int thread_alive;
+ pthread_t stat_thread_id;
+ long long statistic_opt[_OPT_TYPE_MAX];
+ struct _traffic_info *traffic_info[TSG_ACTION_MAX+1];
+ struct _traffic_info default_total_info;
+
+ int static_table_id;
+ int static_column_id[STATIS_MAX];
+ struct fieldstat_instance *statistic_handle;
+
+ int metric_cycle;
+ int metric_table_id;
+ struct fieldstat_dynamic_instance *metric_handle;
+ struct fieldstat_tag **metric_tags;
+};
+
int tsg_statistic_init(const char *conffile, void *logger);
void tsg_statistic_destroy(void);
|
