This commit is contained in:
2023-10-17 14:10:46 +08:00
parent 0e0bb26a83
commit 9f2dbb6860
3 changed files with 7 additions and 2 deletions

View File

@@ -298,7 +298,7 @@ func gtpuHandler(rvMsg []byte, rvLen int) {
tr.DstAddr = fmt.Sprintf("%s:%d", extHdr.DstIP, extHdr.DstPort)
tr.MsgType = int(extHdr.MsgType)
tr.MsgDirect = int(extHdr.MsgDirect)
tr.Length = int(rvLen - off)
tr.RawMsg = make([]byte, int(rvLen-off))
copy(tr.RawMsg, []byte(msg[off:]))