summaryrefslogtreecommitdiff
path: root/src/ntc_ip_comm.h
diff options
context:
space:
mode:
authoryw <[email protected]>2018-06-20 16:31:24 +0800
committeryw <[email protected]>2018-06-20 16:31:24 +0800
commit9dac75d98e3d8996518cf14ac72a042d215cfa58 (patch)
treeaa2b853b5a6798d5931a71f1ceaed5797425c534 /src/ntc_ip_comm.h
first git version
Diffstat (limited to 'src/ntc_ip_comm.h')
-rw-r--r--src/ntc_ip_comm.h72
1 files changed, 72 insertions, 0 deletions
diff --git a/src/ntc_ip_comm.h b/src/ntc_ip_comm.h
new file mode 100644
index 0000000..787abd7
--- /dev/null
+++ b/src/ntc_ip_comm.h
@@ -0,0 +1,72 @@
+#ifndef NTC_IP_COMM_H
+#define NTC_IP_COMM_H
+
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+#include "stream.h"
+
+ typedef struct ntc_ip_comm_global_item
+ {
+ void * log_handle;
+ char log_path[1024];
+ unsigned int log_level;
+ unsigned int using_kafka;
+ unsigned int indie_kafka;
+ char kafka_brokelist[1024];
+ char kafka_handle_provide_path[1024];
+ char kafka_handle_name[1024];
+ char kafka_topic[1024];
+
+ unsigned int local_ip_nr;
+ char local_ip_str[128];
+ char dpkt_label[1024];
+ int dpkt_project_id;
+ int entry_id;
+ int service;
+ unsigned int min_bytes;
+ unsigned int min_pkts;
+
+ }ntc_ip_comm_global_item;
+
+
+ typedef enum
+ {
+ OK = 0,
+ ERROR = -1,
+ UNDEFINE = -2
+ } STATUS;
+
+ typedef enum
+ {
+ TRUE = 1,
+ FALSE = 0
+ } BOOL;
+
+
+ typedef struct _dpkt_lable_t
+ {
+ unsigned char trans_proto;
+ unsigned char v6;
+ unsigned short _pad0;
+ unsigned int dpkt_service_type;
+ unsigned int dpkt_proto_type;
+ unsigned int dpkt_app_type;
+ unsigned int dpkt_op_type;
+ unsigned int dpkt_browser_type;
+ unsigned int dpkt_web_type;
+ unsigned int dpkt_behavior_type;
+ }dpkt_lable_t;
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+
+