summaryrefslogtreecommitdiff
path: root/platform/include/packet_stat.h
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2023-08-09 18:47:16 +0800
committerluwenpeng <[email protected]>2023-08-10 18:31:38 +0800
commite34aa3f5e23d7fa0b95944269c499d5c1e7c23aa (patch)
treeaf0565991e01741c850d9479850fc58df6f9b509 /platform/include/packet_stat.h
parent1063574ca0d3fea91f26b8a6bd76a2d021efd822 (diff)
TSG-16531 PacketAdapter适配容器环境,使用mrzcpd收包,通过RAW Socket注RST包v2.0.0-20230810
Diffstat (limited to 'platform/include/packet_stat.h')
-rw-r--r--platform/include/packet_stat.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/platform/include/packet_stat.h b/platform/include/packet_stat.h
new file mode 100644
index 0000000..3e56cd8
--- /dev/null
+++ b/platform/include/packet_stat.h
@@ -0,0 +1,20 @@
+#ifndef _PACKET_STAT_H
+#define _PACKET_STAT_H
+
+#ifdef __cpluscplus
+extern "C"
+{
+#endif
+
+struct packet_stat;
+struct packet_stat *packet_stat_create(const char *profile);
+void packet_stat_destory(struct packet_stat *handle);
+
+void packet_stat_output(struct packet_stat *handle, struct metrics *metrics);
+int packet_stat_cycle(struct packet_stat *handle);
+
+#ifdef __cpluscplus
+}
+#endif
+
+#endif