sing-tun/route_gvisor.go
2023-04-22 20:14:32 +08:00

16 lines
288 B
Go

//go:build with_gvisor
package tun
import (
"github.com/sagernet/sing/common/buf"
"gvisor.dev/gvisor/pkg/tcpip/stack"
)
type DirectDestination interface {
WritePacket(buffer *buf.Buffer) error
WritePacketBuffer(buffer stack.PacketBufferPtr) error
Close() error
Timeout() bool
}