feat: add support for pcap replay

This commit is contained in:
eddc005
2024-05-06 20:28:36 +01:00
parent 5723490a6c
commit 94387450cf
5 changed files with 176 additions and 10 deletions

View File

@@ -48,6 +48,9 @@ type PacketIO interface {
ProtectedDialContext(ctx context.Context, network, address string) (net.Conn, error)
// Close closes the packet IO.
Close() error
// SetCancelFunc gives packet IO access to context cancel function, enabling it to
// trigger a shutdown
SetCancelFunc(cancelFunc context.CancelFunc) error
}
type ErrInvalidPacket struct {