2026-01-07 23:05:08 +01:00
|
|
|
package tun
|
|
|
|
|
|
2026-04-13 21:38:10 +08:00
|
|
|
import "gvisor.dev/gvisor/pkg/tcpip/stack"
|
|
|
|
|
|
2026-01-07 23:05:08 +01:00
|
|
|
// Tun interface implements tun interface interaction
|
|
|
|
|
type Tun interface {
|
|
|
|
|
Start() error
|
|
|
|
|
Close() error
|
2026-04-13 21:38:10 +08:00
|
|
|
Name() (string, error)
|
|
|
|
|
Index() (int, error)
|
|
|
|
|
newEndpoint() (stack.LinkEndpoint, error)
|
2026-01-07 23:05:08 +01:00
|
|
|
}
|