mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-05-08 14:13:22 +00:00
And refactor `mtu` to support setting IPv4/v6 separately Example: https://github.com/XTLS/Xray-core/pull/5887#issue-4198837696
13 lines
253 B
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)
|
|
}
|