-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtun_other.go
48 lines (37 loc) · 1.36 KB
/
tun_other.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//go:build !linux && !freebsd
package tuntap
import (
"net"
)
const flagTruncated = 0
func createInterface(ifPattern string, kind DevKind) (*Interface, error) {
panic("tuntap: Not implemented on this platform")
}
// IPv6SLAAC enables/disables stateless address auto-configuration (SLAAC) for the interface.
func (t *Interface) IPv6SLAAC(ctrl bool) error {
panic("tuntap: Not implemented on this platform")
}
// IPv6Forwarding enables/disables ipv6 forwarding for the interface.
func (t *Interface) IPv6Forwarding(ctrl bool) error {
panic("tuntap: Not implemented on this platform")
}
// IPv6 enables/disable ipv6 for the interface.
func (t *Interface) IPv6(ctrl bool) error {
panic("tuntap: Not implemented on this platform")
}
// AddAddress adds an IP address to the tunnel interface.
func (t *Interface) AddAddress(ip net.IP, subnet *net.IPNet) error {
panic("tuntap: Not implemented on this platform")
}
// SetMTU sets the tunnel interface MTU size.
func (t *Interface) SetMTU(mtu int) error {
panic("tuntap: Not implemented on this platform")
}
// Up sets the tunnel interface to the UP state.
func (t *Interface) Up() error {
panic("tuntap: Not implemented on this platform")
}
// GetAddrList returns the IP addresses (as bytes) associated with the interface.
func (t *Interface) GetAddrList() ([][]byte, error) {
panic("tuntap: Not implemented on this platform")
}