mirror of
https://github.com/zr-hebo/sniffer-agent.git
synced 2025-08-11 19:58:42 +08:00
add more info
This commit is contained in:
15
model/tcp_packet.go
Normal file
15
model/tcp_packet.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package model
|
||||
|
||||
type TCPPacket struct {
|
||||
Payload []byte
|
||||
Seq int64
|
||||
ToServer bool
|
||||
}
|
||||
|
||||
func NewTCPPacket(payload []byte, seq int64, toServer bool) *TCPPacket {
|
||||
return &TCPPacket{
|
||||
Payload: payload,
|
||||
Seq: seq,
|
||||
ToServer: toServer,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user