Files
xray-core/proxy/tun/tun.go

13 lines
253 B
Go

package tun
import "gvisor.dev/gvisor/pkg/tcpip/stack"
// Tun interface implements tun interface interaction
type Tun interface {
Start() error
Close() error
Name() (string, error)
Index() (int, error)
newEndpoint() (stack.LinkEndpoint, error)
}