1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-14 00:07:09 -05:00
v2fly/app/tun/device/device.go
2023-10-22 22:44:27 +01:00

20 lines
271 B
Go

package device
import (
"github.com/v2fly/v2ray-core/v5/common"
"gvisor.dev/gvisor/pkg/tcpip/stack"
)
type Device interface {
stack.LinkEndpoint
common.Closable
}
type Options struct {
Name string
MTU uint32
}
type DeviceCreator func(Options) (Device, error)