perf: tcpdump功能优化提升稳定性

This commit is contained in:
TsMask
2024-08-20 15:47:46 +08:00
parent 4f924a943f
commit e4ad2088a1
4 changed files with 217 additions and 155 deletions

View File

@@ -2,12 +2,15 @@ package service
// 信令抓包 服务层接口
type ITcpdump interface {
// DumpStart 触发tcpdump开始抓包 filePcapName, err
// DumpStart 触发tcpdump开始抓包
DumpStart(neType, neId, cmdStr string) (string, error)
// DumpStop 停止已存在抓包句柄
DumpStop(neType, neId, fileName string) (string, error)
DumpStop(neType, neId, taskCode string) (string, error)
// DumpUPF UPF标准版抓包
DumpUPF(neType, neId, cmdStr string) (string, string, error)
// DumpDownload 抓包文件网元端复制到本地输出zip文件
DumpDownload(neType, neId, taskCode string) (string, error)
// UPFTrace UPF标准版内部抓包
UPFTrace(neType, neId, cmdStr string) (string, error)
}