fix: provide correct timestamp for TCP reassembler

This commit is contained in:
Toby
2024-05-06 14:35:31 -07:00
parent 245ac46b65
commit d7506264ad
3 changed files with 21 additions and 4 deletions

View File

@@ -3,6 +3,7 @@ package io
import (
"context"
"net"
"time"
)
type Verdict int
@@ -24,6 +25,8 @@ const (
type Packet interface {
// StreamID is the ID of the stream the packet belongs to.
StreamID() uint32
// Timestamp is the time the packet was received.
Timestamp() time.Time
// Data is the raw packet data, starting with the IP header.
Data() []byte
}